mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 16:58:27 -04:00
swag:cloudflare-real-ip Updates after review
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
# shellcheck disable=SC2046
|
||||
|
||||
printf "set_real_ip_from %b;\n" $({
|
||||
curl -s "https://www.cloudflare.com/ips-v4" &
|
||||
curl -s "https://www.cloudflare.com/ips-v6"
|
||||
}) >/config/nginx/cf_real-ip.conf
|
||||
|
||||
chown abc:abc /config/nginx/cf_real-ip.conf
|
||||
Reference in New Issue
Block a user