revert: undo fix tryout for TRUSTED_PROXIES
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
apiVersion: v2
|
||||
appVersion: 22.1.1
|
||||
appVersion: auto
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: https://truecharts.org/
|
||||
@@ -33,4 +33,4 @@ sources:
|
||||
- https://github.com/nextcloud/docker
|
||||
- https://github.com/nextcloud/helm
|
||||
type: application
|
||||
version: 3.7.15
|
||||
version: 3.7.16
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user