summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2021-12-01 14:14:33 -0500
committerKjetil Orbekk <kj@orbekk.com>2021-12-01 14:14:33 -0500
commitf0e34d575b8a320dfd600fc064064f3b90be85bc (patch)
treef0f6ac71aceb090811b5e7d8252f1e7f405a0dd6 /config
parenta5387445a612e0edf58c60e5ba3ad2acc02b25d3 (diff)
update kj.orbekk.com config
Diffstat (limited to 'config')
-rw-r--r--config/web-server.nix22
1 files 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 = ''