Skip to content

Commit 8b745d0

Browse files
committed
entrypoint update
1 parent 4922ad0 commit 8b745d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ fi
366366
if [ "$NGINX_IS_EXISTS" -eq "1" -a "$ENABLE_NGINX_REMOTEIP" -eq "1" ]; then
367367
# https://nginx.org/en/docs/http/ngx_http_realip_module.html
368368
echo ">> enabling remoteip support, use this only behind a proxy!"
369-
nginx_remoteip_string="set_real_ip_from 172.16.0.0/12;\n set_real_ip_from fd00:dead:beef::/48;\n set_real_ip_from fd00:dead:cafe::/48;\n ##REPLACE_WITH_MORE_REAL_IP##\n real_ip_header X-Forwarded-For;\n #real_ip_recursive on;\n"
369+
nginx_remoteip_string="set_real_ip_from 172.20.0.0/8;\n #set_real_ip_from fd00:dead:beef::/48;\n set_real_ip_from fd00::/8;\n ##REPLACE_WITH_MORE_REAL_IP##\n real_ip_header X-Forwarded-For;\n #real_ip_recursive on;\n"
370370
sed -i "s|##REPLACE_WITH_REMOTEIP_CONFIG##|${nginx_remoteip_string}|g" ${NGINX_CONF_FILE}
371371
fi
372372

0 commit comments

Comments
 (0)