mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-15 15:50:22 -04:00
Merge pull request #235 from takikoo/patch-1
Update 98-cloudflare-real-ip
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
# shellcheck disable=SC2046
|
# shellcheck disable=SC2046
|
||||||
|
|
||||||
printf "set_real_ip_from %b;\n" $({
|
printf "set_real_ip_from %b;\n" $({
|
||||||
curl -s "https://www.cloudflare.com/ips-v4" &
|
curl -s -w '\n' "https://www.cloudflare.com/ips-v4" &
|
||||||
curl -s "https://www.cloudflare.com/ips-v6" &
|
curl -s -w '\n' "https://www.cloudflare.com/ips-v6" &
|
||||||
ip route | grep -v default | awk '{print $1}'
|
ip route | grep -v default | awk '{print $1}'
|
||||||
}) > /config/nginx/cf_real-ip.conf
|
}) > /config/nginx/cf_real-ip.conf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user