mirror of
https://git.cloudron.io/dswd/vscode-app.git
synced 2025-09-01 04:44:59 +00:00
Optional proxyAuth
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user