Add --proxy-domain support

This commit is contained in:
n-i-x 2020-05-19 23:06:47 -04:00 committed by GitHub
parent 84873a6b62
commit eb7eaa456a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,21 @@
#!/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 \
@ -16,4 +26,5 @@ exec \
--disable-telemetry \ --disable-telemetry \
--disable-updates \ --disable-updates \
--auth "${AUTH}" \ --auth "${AUTH}" \
"${PROXY_DOMAIN_ARG}" \
/config/workspace /config/workspace