Optional proxyAuth
This commit is contained in:
parent
e8f7788d79
commit
03e3a0dfa7
|
@ -13,8 +13,10 @@
|
|||
"website": "https://github.com/cdr/code-server",
|
||||
"contactEmail": "support@cloudron.io",
|
||||
"icon": "logo.png",
|
||||
"optionalSso": true,
|
||||
"addons": {
|
||||
"localstorage": {}
|
||||
"localstorage": {},
|
||||
"proxyAuth": { "path": "!/healthz" }
|
||||
},
|
||||
"capabilities": [
|
||||
],
|
||||
|
|
6
start.sh
6
start.sh
|
@ -23,6 +23,12 @@ if ! [ -f /app/data/vscode/config/config.yaml ]; then
|
|||
echo "Generated random password: ${PASSWORD}"
|
||||
fi
|
||||
|
||||
if [ "${CLOUDRON_PROXY_AUTH:=0}" == "1" ]; then
|
||||
sed -i "s/^auth:.*/auth: none/g" /app/data/vscode/config/config.yaml
|
||||
else
|
||||
sed -i "s/^auth:.*/auth: password/g" /app/data/vscode/config/config.yaml
|
||||
fi
|
||||
|
||||
chown -R cloudron: /app/data
|
||||
|
||||
grep -e '^password' --color=never /app/data/vscode/config/config.yaml
|
||||
|
|
Loading…
Reference in New Issue