diff options
author | cyfraeviolae <cyfraeviolae> | 2022-08-24 17:52:17 -0400 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2022-08-24 17:52:17 -0400 |
commit | 274bc504f2cd65985a3b841c09ed51ee77fc047a (patch) | |
tree | 92a3796ae2692376f0f8077ff2ec0c39732aa7bb | |
parent | 0f88f37bcb1f0d7fdbde7a805b88fc958eb9c986 (diff) |
cache
-rw-r--r-- | cyfraeviolae.conf | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cyfraeviolae.conf b/cyfraeviolae.conf index a316753..db4fac7 100644 --- a/cyfraeviolae.conf +++ b/cyfraeviolae.conf @@ -1,11 +1,6 @@ server { server_name cyfraeviolae.org; - location ~* \.(?:css|js|html|ico)$ { - expires 1h; - add_header Cache-Control "public"; - } - location /forbidden-salamanders { proxy_pass http://127.0.0.1:9010/; } @@ -50,11 +45,15 @@ server { location / { root /srv/cyfraeviolae; + expires 1h; + add_header Cache-Control "public"; } error_page 404 /404.html; location = /404.html { root /srv/cyfraeviolae; + expires 1h; + add_header Cache-Control "public"; } listen 443 ssl; # managed by Certbot |