Skip to content

Commit

Permalink
add expires defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Dec 22, 2018
1 parent cf6f46a commit 6d7465b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions 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;
Expand Down

0 comments on commit 6d7465b

Please sign in to comment.