fix: set trusted proxies to 10.0.0.0/8

This commit is contained in:
Philipp Rothmann 2023-05-08 11:43:24 +02:00 committed by Christian Galo
parent af18ec0637
commit 8fdad4c913
2 changed files with 16 additions and 2 deletions

16
abra.sh
View File

@ -35,7 +35,21 @@ set_app_config(){
run_occ "config:app:set $APP $KEY --value '$VALUE'"
}
install_bbb(){
set_system_config() {
KEY=$1
VALUE=$2
run_occ "config:system:set $KEY --value '$VALUE'"
}
set_trusted_proxies() {
trusted_proxies="$@"
if [ -z "$1" ]; then
trusted_proxies="$TRUSTED_PROXIES"
fi
set_system_config trusted_proxies "$trusted_proxies"
}
install_bbb() {
install_apps bbb
set_app_config bbb app.navigation true
set_app_config bbb api.url "$BBB_URL"

View File

@ -64,7 +64,7 @@ services:
- NEXTCLOUD_ADMIN_USER=${ADMIN_USER}
- NEXTCLOUD_ADMIN_PASSWORD_FILE=/run/secrets/admin_password
- NEXTCLOUD_TRUSTED_DOMAINS=${DOMAIN}
- TRUSTED_PROXIES=traefik
- TRUSTED_PROXIES=10.0.0.0/8
- REDIS_HOST=cache
- OVERWRITEPROTOCOL=https
- PHP_MEMORY_LIMIT=1G