From b64ae4bb8266be1e95a868969ab58f666b8e15cc Mon Sep 17 00:00:00 2001 From: Saibotk Date: Sun, 19 Jan 2025 23:52:11 +0100 Subject: [PATCH] fix(container): use 8080, fix cach path, adjust real ip from --- .docker/default.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.docker/default.conf b/.docker/default.conf index 7da3278..d02f639 100644 --- a/.docker/default.conf +++ b/.docker/default.conf @@ -11,12 +11,12 @@ map $sent_http_content_type $expires { ~font/ max; } -proxy_cache_path /tmp/nginx-cache levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=1g; +proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=64m; server { root /usr/share/nginx/html; - listen 80; + listen 8080; server_name saibotk.de; access_log off; @@ -24,7 +24,8 @@ server { expires $expires; charset UTF-8; - set_real_ip_from 172.16.0.0/12; + set_real_ip_from 10.0.0.0/8; + set_real_ip_from 172.16.0.0/12; add_header X-Frame-Options "DENY"; add_header Referrer-Policy "no-referrer";