diff --git a/deploy/nginx/nginx.conf b/deploy/nginx/nginx.conf index b0a36acc41..dad9f5d79c 100644 --- a/deploy/nginx/nginx.conf +++ b/deploy/nginx/nginx.conf @@ -123,8 +123,8 @@ http { # Allow localhost and internal Docker network allow 127.0.0.1; - # Allow requests from the internal Docker network (e.g., 172.18.0.0/16) - allow 172.18.0.0/16; + # Allow requests from the entire 172.0.0.0/8 range + allow 172.0.0.0/8; # Deny all other requests deny all; diff --git a/docker-compose.yml b/docker-compose.yml index 22a10c30ef..7b6ed2e764 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -246,4 +246,4 @@ networks: driver: bridge ipam: config: - - subnet: 172.18.0.0/16 + - subnet: "${NETWORK_SUBNET:-172.21.1.0/24}" diff --git a/env.example b/env.example index c21d764e99..afe8a17bfd 100644 --- a/env.example +++ b/env.example @@ -31,4 +31,6 @@ MAIN_LANGUAGE=en SYSTEM_ADMIN_PASSWORD=password WEBSITE_TITLE=Your Website Title TLS_CERTIFICATE_FILE=/etc/apache2/ssl/localhost.crt -TLS_CERTIFICATE_KEY=/etc/apache2/ssl/localhost.key \ No newline at end of file +TLS_CERTIFICATE_KEY=/etc/apache2/ssl/localhost.key + +NETWORK_SUBNET=172.21.1.0/24 \ No newline at end of file