From 905d807ca5c3ebdafdf0a324721a3b24abd3f661 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Wed, 29 Dec 2021 16:48:55 -0500 Subject: Enable webdav --- config/web-server.nix | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/config/web-server.nix b/config/web-server.nix index 55de558..7da30ee 100644 --- a/config/web-server.nix +++ b/config/web-server.nix @@ -100,19 +100,19 @@ in { root /storage/srv/kj.orbekk.com/tmp/; ''; }; - # locations."/dav" = { - # root = "/storage/srv/kj.orbekk.com"; - # extraConfig = '' - # auth_basic webdav; - # # htpasswd -c /opt/secret/nginx-webdav.htpasswd - # dav_ext_methods PROPFIND OPTIONS; - # auth_basic_user_file "/opt/secret/nginx-webdav.htpasswd"; - # dav_methods put delete mkcol copy move; - # dav_access user:rw group:rw all:rw; - # create_full_put_path on; - # autoindex on; - # ''; - # }; + locations."/dav" = { + root = "/storage/srv/kj.orbekk.com"; + extraConfig = '' + auth_basic webdav; + # htpasswd -c /opt/secret/nginx-webdav.htpasswd + dav_ext_methods PROPFIND OPTIONS; + auth_basic_user_file "/opt/secret/nginx-webdav.htpasswd"; + dav_methods put delete mkcol copy move; + dav_access user:rw group:rw all:rw; + create_full_put_path on; + autoindex on; + ''; + }; }; "git.orbekk.com" = template // { locations."/".proxyPass = "http://localhost:11103"; -- cgit v1.2.3