mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
Handle change to CF IP URLs
This commit is contained in:
parent
7a66c3f5a7
commit
5b160c5998
@ -2,8 +2,8 @@
|
||||
# shellcheck shell=bash
|
||||
# shellcheck disable=SC2046
|
||||
|
||||
printf "set_real_ip_from %b;\n" $(curl -s "https://www.cloudflare.com/ips-v4") > /config/nginx/cf_real-ip.conf
|
||||
printf "set_real_ip_from %b;\n" $(curl -s "https://www.cloudflare.com/ips-v6") >> /config/nginx/cf_real-ip.conf
|
||||
printf "set_real_ip_from %b;\n" $(curl -s "https://www.cloudflare.com/ips-v4/") > /config/nginx/cf_real-ip.conf
|
||||
printf "set_real_ip_from %b;\n" $(curl -s "https://www.cloudflare.com/ips-v6/") >> /config/nginx/cf_real-ip.conf
|
||||
printf "set_real_ip_from %b;\n" $(ip route | grep -v default | awk '{print $1}') >> /config/nginx/cf_real-ip.conf
|
||||
|
||||
chown abc:abc /config/nginx/cf_real-ip.conf
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user