mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2025-04-16 22:59:30 +02:00
Add support for --local
This commit is contained in:
parent
29ae7551a6
commit
c7e667106b
@ -50,6 +50,7 @@ opt_param_env_vars:
|
||||
- { env_var: "PASSWORD", env_value: "password", desc: "Optional web gui password, if not provided, there will be no auth."}
|
||||
- { env_var: "SUDO_PASSWORD", env_value: "password", desc: "If this optional variable is set, user will have sudo access in the code-server terminal with the specified password."}
|
||||
- { env_var: "PROXY_DOMAIN", env_value: "code-server.my.domain", desc: "If this optional variable is set, this domain will be proxied for subdomain proxying. See [Documentation](https://github.com/cdr/code-server/blob/master/doc/FAQ.md#sub-domains)" }
|
||||
- { env_var: "LOCALE", env_value: "en", desc: "If this optional variable is set, will set Display Language, default is English. See [Available locales](https://code.visualstudio.com/docs/getstarted/locales#_available-locales)" }
|
||||
|
||||
optional_block_1: false
|
||||
optional_block_1_items: ""
|
||||
|
@ -13,6 +13,10 @@ else
|
||||
PROXY_DOMAIN_ARG="--proxy-domain=${PROXY_DOMAIN}"
|
||||
fi
|
||||
|
||||
if [ -z "${LOCALE}" ]; then
|
||||
LOCALE="en"
|
||||
fi
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc \
|
||||
/usr/local/bin/code-server \
|
||||
@ -21,5 +25,6 @@ exec \
|
||||
--extensions-dir /config/extensions \
|
||||
--disable-telemetry \
|
||||
--auth "${AUTH}" \
|
||||
--locale "${LOCALE}" \
|
||||
"${PROXY_DOMAIN_ARG}" \
|
||||
/config/workspace
|
||||
|
Loading…
x
Reference in New Issue
Block a user