Skip to content

Commit 4e166bd

Browse files
authored
Merge pull request #3154 from nextcloud/enh/noid/add-unsupported-env-check
add check for unsupported environmental variables
2 parents c153fed + 378989e commit 4e166bd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Containers/mastercontainer/start.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,17 @@ elif mountpoint -q /etc/timezone; then
268268
exit 1
269269
fi
270270

271+
# Check if unsupported env are set (but don't exit as it would break many instances)
272+
if [ -n "$APACHE_DISABLE_REWRITE_IP" ]; then
273+
print_red "The environmental variable APACHE_DISABLE_REWRITE_IP has been set which is not supported by AIO. Please remove it!"
274+
fi
275+
if [ -n "$NEXTCLOUD_TRUSTED_DOMAINS" ]; then
276+
print_red "The environmental variable NEXTCLOUD_TRUSTED_DOMAINS has been set which is not supported by AIO. Please remove it!"
277+
fi
278+
if [ -n "$TRUSTED_PROXIES" ]; then
279+
print_red "The environmental variable TRUSTED_PROXIES has been set which is not supported by AIO. Please remove it!"
280+
fi
281+
271282
# Add important folders
272283
mkdir -p /mnt/docker-aio-config/data/
273284
mkdir -p /mnt/docker-aio-config/session/

0 commit comments

Comments
 (0)