swag:cloudflare-real-ip Init push

This commit is contained in:
Roxedus
2020-10-26 00:11:39 +01:00
parent afcc5a19aa
commit e4b7592115
7 changed files with 31 additions and 68 deletions
+10
View File
@@ -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