From 69477f8cc09b9b30f29422b8248a9401b9e403fa Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Mon, 20 May 2024 16:32:24 +0300 Subject: [PATCH] misc goodies --- conf.avail/http-krd.sh.conf | 25 +++++++++++++++++++++++++ snip.d/disable-comp | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 snip.d/disable-comp diff --git a/conf.avail/http-krd.sh.conf b/conf.avail/http-krd.sh.conf index ba4ffed..8339cd8 100644 --- a/conf.avail/http-krd.sh.conf +++ b/conf.avail/http-krd.sh.conf @@ -1,3 +1,28 @@ +map $remote_addr + $krdsh_remote_type +{ + default external; + + ## 127.0.0.0/8 + ~^127\..+$ internal; + ## 10.0.0.0/8 + # ~^10\..+$ internal; + ## 172.16.0.0/12 + # ~^172\.(?:1[6-9]|2[0-9]|3[01])\..+$ internal; + ## 192.168.0.0/16 + # ~^192\.168\..+$ internal; + ## 192.0.2.0/24 + ~^192\.0\.2\..+$ internal; + ## 198.51.0.0/24 + # ~^198\.51\.0\..+$ internal; + ## 198.18.0.0/15 + # ~^198\.1[89]\..+$ internal; + ## 203.0.113.0/24 + # ~^203\.0\.113\..+$ internal; + ## 240.0.0.0/4 + ~^2(?:4[0-9]|5[0-5])\..+$ internal; +} + map $scheme:$host $krdsh_need_ssl { diff --git a/snip.d/disable-comp b/snip.d/disable-comp new file mode 100644 index 0000000..314155a --- /dev/null +++ b/snip.d/disable-comp @@ -0,0 +1,3 @@ +gzip off; +brotli off; +zstd off;