From b3e229371d7f41bfbe94964b5ef9c443802a90bd Mon Sep 17 00:00:00 2001 From: noogen Date: Wed, 28 Sep 2022 11:00:14 -0500 Subject: [PATCH] fix includes --- files/etc/nginx/geoipme.conf | 4 ++++ files/etc/nginx/include/assets.conf | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/files/etc/nginx/geoipme.conf b/files/etc/nginx/geoipme.conf index 1e0e9c7..127514d 100644 --- a/files/etc/nginx/geoipme.conf +++ b/files/etc/nginx/geoipme.conf @@ -8,4 +8,8 @@ location ~ /(geoip|geoipme)+/(?.*) { proxy_set_header X-Forwarded-For $realip; proxy_set_header Host "127.0.0.1"; proxy_pass "http://127.0.0.1:9081"; + + # disable caching for geoip + add_header Cache-Control 'no-store, no-cache'; + expires off; } diff --git a/files/etc/nginx/include/assets.conf b/files/etc/nginx/include/assets.conf index 07305fa..7dc353a 100644 --- a/files/etc/nginx/include/assets.conf +++ b/files/etc/nginx/include/assets.conf @@ -27,5 +27,5 @@ location ~* ^.*\.(css|js|jpe?g|gif|png|woff|eot|ttf|svg|ico|css\.map|js\.map)$ { expires @30m; access_log off; - include conf.d/include/proxy.conf; + include /etc/nginx/include/proxy.conf; } \ No newline at end of file