Skip to content

Commit

Permalink
Merge pull request #4829 from nextcloud/enh/noid/trust-docker-network
Browse files Browse the repository at this point in the history
trusted-proxies: trust docker network
  • Loading branch information
szaimen authored Jun 17, 2024
2 parents 572f9fa + cfbb348 commit dbf0d3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Containers/apache/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ done
IPv4_ADDRESS="$(dig "$APACHE_HOST" A +short +search | head -1)"
# Bring it in CIDR notation
# shellcheck disable=SC2001
IPv4_ADDRESS="$(echo "$IPv4_ADDRESS" | sed 's|[0-9]\+$|1/32|')"
IPv4_ADDRESS="$(echo "$IPv4_ADDRESS" | sed 's|[0-9]\+$|0/16|')"

if [ -z "$APACHE_PORT" ]; then
export APACHE_PORT="443"
Expand Down
2 changes: 1 addition & 1 deletion Containers/nextcloud/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ fi
IPv4_ADDRESS="$(dig nextcloud-aio-nextcloud A +short +search | head -1)"
# Bring it in CIDR notation
# shellcheck disable=SC2001
IPv4_ADDRESS="$(echo "$IPv4_ADDRESS" | sed 's|[0-9]\+$|1/32|')"
IPv4_ADDRESS="$(echo "$IPv4_ADDRESS" | sed 's|[0-9]\+$|0/16|')"
php /var/www/html/occ config:system:set trusted_proxies 10 --value="$IPv4_ADDRESS"

if [ -n "$ADDITIONAL_TRUSTED_DOMAIN" ]; then
Expand Down

0 comments on commit dbf0d3e

Please sign in to comment.