revert: undo fix tryout for TRUSTED_PROXIES

This commit is contained in:
kjeld Schouten-Lebbing
2021-09-09 00:19:34 +02:00
parent cc39ffec00
commit ae27de4dc4
2 changed files with 2 additions and 29 deletions
-27
View File
@@ -81,33 +81,6 @@ initContainers:
secretKeyRef:
name: dbcreds
key: plainhost
- name: injectconfig
image: nextcloud:22.1.1
envFrom:
- configMapRef:
name: nextcloudconfig
command:
- "su"
- "-p"
- "www-data"
- "-s"
- "/bin/sh"
- "-c"
args:
- if [ -f /var/www/html/occ ]; then
if [ -n "${NEXTCLOUD_TRUSTED_DOMAINS+x}" ]; then
echo "setting trusted domains…";
NC_TRUSTED_DOMAIN_IDX=1;
for DOMAIN in $NEXTCLOUD_TRUSTED_DOMAINS ; do
DOMAIN=$(echo "$DOMAIN" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//');
php /var/www/html/occ config:system:set trusted_domains $NC_TRUSTED_DOMAIN_IDX --value=$DOMAIN;
NC_TRUSTED_DOMAIN_IDX=$(($NC_TRUSTED_DOMAIN_IDX+1));
done;
fi;
fi;
volumeMounts:
- mountPath: /var/www/html
name: data
podSecurityContext: