Skip to content

Commit f3317b8

Browse files
committed
Pass into MEDLEY a new env variable OIO_FB_URL that contains the url for the online filebrowser
1 parent 100e195 commit f3317b8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docker_medley/scripts/run-online-medley

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ fi
142142
-d ${FILEBROWSER_DATABASE} --lockPassword --perm.share=false --perm.execute=false
143143
/usr/local/bin/filebrowser -d ${FILEBROWSER_DATABASE} --port ${FILEBROWSER_PORT} \
144144
${FILEBROWSER_CERT} ${FILEBROWSER_KEY} &
145+
export OIO_FB_URL="${OIO_FB_URL}:${FILEBROWSER_PORT}/files/il?u=${MEDLEY_UNAME}&p=${SFTP_PWD}"
145146
#
146147
#
147148
#

web-portal/server/js/medley.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
const config = require("./config");
1717
const express = require("express");
1818
const docker = require('./docker');
19+
const url = require("url");
20+
1921
//
2022
// The router
2123
//
@@ -112,6 +114,7 @@ function interlispRunCmd(req) {
112114
+ dockerTlsMounts
113115
+ ` --env PORT=${port}`
114116
+ ` --env NCO=${config.isNCO(req) ? "true" : "false"}`
117+
+ ` --env OIO_FB_URL=${url.format({protocol: req.protocol, host: req.hostname})}`
115118
+ medleyEnvs(req)
116119
+ ` --env IDLE_SECS=${isGuest ? config.idleTimeoutSecsGuest : config.idleTimeoutSecs}`
117120
+ sftpEnvs(req)

0 commit comments

Comments
 (0)