diff --git a/nginx.conf b/nginx.conf index 17ca9c1..dbab5bf 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,3 +1,17 @@ +proxy_cache_path /www/snoot.club/.snootclub/proxy-cache/ + levels=1:2 + keys_zone=snoot:10m + max_size=10g + inactive=60m + use_temp_path=off; + +map $sent_http_content_type $expires { + default off; + text/html epoch; + application/json epoch; + ~image/ max; +} + server { include /www/snoot.club/blocks/error_page.nginx; include /www/snoot.club/blocks/ssl.nginx;