Spaces:
Running
Running
Jarvis Bot commited on
Commit ·
71f9d01
1
Parent(s): ceb225e
Fix: preserve PASSWORD env for code-server, add --path-prefix /files for dufs
Browse files- start_server.sh +2 -1
start_server.sh
CHANGED
|
@@ -16,13 +16,14 @@ mkdir -p /data/files
|
|
| 16 |
--allow-search \
|
| 17 |
--allow-archive \
|
| 18 |
--enable-cors \
|
|
|
|
| 19 |
--port 5000 \
|
| 20 |
--bind 127.0.0.1 &
|
| 21 |
|
| 22 |
sleep 1
|
| 23 |
|
| 24 |
echo "====================== Starting code-server (port 8443) ========================"
|
| 25 |
-
sudo -u coder code-server \
|
| 26 |
--bind-addr 127.0.0.1:8443 &
|
| 27 |
|
| 28 |
sleep 2
|
|
|
|
| 16 |
--allow-search \
|
| 17 |
--allow-archive \
|
| 18 |
--enable-cors \
|
| 19 |
+
--path-prefix /files \
|
| 20 |
--port 5000 \
|
| 21 |
--bind 127.0.0.1 &
|
| 22 |
|
| 23 |
sleep 1
|
| 24 |
|
| 25 |
echo "====================== Starting code-server (port 8443) ========================"
|
| 26 |
+
sudo -E -u coder code-server \
|
| 27 |
--bind-addr 127.0.0.1:8443 &
|
| 28 |
|
| 29 |
sleep 2
|