diff options
author | Kjetil Ørbekk <kj@orbekk.com> | 2018-06-17 16:30:07 -0400 |
---|---|---|
committer | Kjetil Ørbekk <kj@orbekk.com> | 2018-06-17 16:30:07 -0400 |
commit | b815919ef4d55ad2bddd97135a1bb653848f0262 (patch) | |
tree | 9a85bcaf8b9fcc4e573d50d76f04485cfe1b3239 /config/web-server.nix | |
parent | 439bc4e561d3e0cf6e49371f4c7c9e4b8d2650ab (diff) |
dragon-changes
Diffstat (limited to 'config/web-server.nix')
-rw-r--r-- | config/web-server.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/web-server.nix b/config/web-server.nix index 4d5f5f1..9dfe528 100644 --- a/config/web-server.nix +++ b/config/web-server.nix @@ -30,10 +30,16 @@ root = "/storage/srv/orbekk.com"; }; "kj.orbekk.com" = template // { - root = "${pkgs.www-orbekk}"; + root = "/home/orbekk/www-public"; locations."/" = { extraConfig = '' try_files $uri @storage; + # kill cache + add_header Last-Modified $date_gmt; + add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; + if_modified_since off; + expires off; + etag off; ''; }; locations."@storage" = { |