diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2020-05-17 20:24:09 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2020-05-17 20:34:42 +0200 |
commit | 3c7c834a37802e5ca5d93a4b4a91dde3264d9f5d (patch) | |
tree | 07abe3c01bb29505ceab94b7bdb587c1d3bd09ba /roles/wiki/files/etc/nginx/sites-available/website | |
parent | a16b003a9bf101234ca988b6e43466a3d6b99bc7 (diff) |
nginx: Add Expires: HTTP headers.
Diffstat (limited to 'roles/wiki/files/etc/nginx/sites-available/website')
-rw-r--r-- | roles/wiki/files/etc/nginx/sites-available/website | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/wiki/files/etc/nginx/sites-available/website b/roles/wiki/files/etc/nginx/sites-available/website index cd6832a..69d3337 100644 --- a/roles/wiki/files/etc/nginx/sites-available/website +++ b/roles/wiki/files/etc/nginx/sites-available/website @@ -47,6 +47,8 @@ server { } location = /ikiwiki.cgi { internal; } location /static/ { + expires 30d; + try_files $uri =404; alias /var/lib/ikiwiki/public_html/fripost-wiki/static/; } location /material/ { |