mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2024-11-22 20:15:41 +01:00
Add --proxy-domain support
This commit is contained in:
parent
84873a6b62
commit
eb7eaa456a
@ -1,19 +1,30 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
# Added by codeserver-golang
|
||||||
|
export PATH=$PATH:/usr/local/go/bin
|
||||||
|
|
||||||
if [ -n "${PASSWORD}" ]; then
|
if [ -n "${PASSWORD}" ]; then
|
||||||
AUTH="password"
|
AUTH="password"
|
||||||
else
|
else
|
||||||
AUTH="none"
|
AUTH="none"
|
||||||
echo "starting with no password"
|
echo "starting with no password"
|
||||||
fi
|
fi
|
||||||
|
code-server:
|
||||||
|
|
||||||
|
if [ -z ${PROXY_DOMAIN+x} ]; then
|
||||||
|
PROXY_DOMAIN_ARG=""
|
||||||
|
else
|
||||||
|
PROXY_DOMAIN_ARG="--proxy-domain=${PROXY_DOMAIN}"
|
||||||
|
fi
|
||||||
|
|
||||||
exec \
|
exec \
|
||||||
s6-setuidgid abc \
|
s6-setuidgid abc \
|
||||||
/app/code-server/code-server \
|
/app/code-server/code-server \
|
||||||
--bind-addr 0.0.0.0:8443 \
|
--bind-addr 0.0.0.0:8443 \
|
||||||
--user-data-dir /config/data \
|
--user-data-dir /config/data \
|
||||||
--extensions-dir /config/extensions \
|
--extensions-dir /config/extensions \
|
||||||
--disable-telemetry \
|
--disable-telemetry \
|
||||||
--disable-updates \
|
--disable-updates \
|
||||||
--auth "${AUTH}" \
|
--auth "${AUTH}" \
|
||||||
/config/workspace
|
"${PROXY_DOMAIN_ARG}" \
|
||||||
|
/config/workspace
|
||||||
|
Loading…
Reference in New Issue
Block a user