From f0e34d575b8a320dfd600fc064064f3b90be85bc Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Wed, 1 Dec 2021 14:14:33 -0500 Subject: update kj.orbekk.com config --- config/web-server.nix | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/config/web-server.nix b/config/web-server.nix index ffeb9e9..1a09d88 100644 --- a/config/web-server.nix +++ b/config/web-server.nix @@ -64,18 +64,10 @@ in { }; "wifi.orbekk.no" = template // { root = "/storage/srv/wifi.orbekk.com"; }; "kj.orbekk.com" = template // { - 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; - ''; - }; + root = "/storage/srv/kj.orbekk.com"; + extraConfig = '' + autoindex on; + ''; locations."/hls" = { extraConfig = '' default_type application/octet-stream; @@ -104,12 +96,6 @@ in { root /storage/srv/kj.orbekk.com/tmp/; ''; }; - locations."@storage" = { - root = "/storage/srv/kj.orbekk.com"; - extraConfig = '' - autoindex on; - ''; - }; # locations."/dav" = { # root = "/storage/srv/kj.orbekk.com"; # extraConfig = '' -- cgit v1.2.3