diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2021-12-29 16:48:55 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2021-12-29 16:48:55 -0500 |
commit | 905d807ca5c3ebdafdf0a324721a3b24abd3f661 (patch) | |
tree | ab2c38a57cb7fdffd64bafd18f31c364c10065dc /config | |
parent | 3aed391f725e5843aaddd26c6ded3773299503dd (diff) |
Enable webdav
Diffstat (limited to 'config')
-rw-r--r-- | config/web-server.nix | 26 |
1 files 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"; |