summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-12-05 23:26:57 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-12-05 23:26:57 +0100
commit92db2624c916133add4f32defb0e31d64539d245 (patch)
tree66eac127bc3532dac3cc202ccf705024788f47ed /custom
parent9491ee71c04d82ab026702d28c5f9ed67aba80d7 (diff)
downloadnixos-92db2624c916133add4f32defb0e31d64539d245.tar
nixos-92db2624c916133add4f32defb0e31d64539d245.tar.gz
nixos-92db2624c916133add4f32defb0e31d64539d245.tar.bz2
nixos-92db2624c916133add4f32defb0e31d64539d245.tar.xz
nixos-92db2624c916133add4f32defb0e31d64539d245.zip
Move webdav out of home
Diffstat (limited to 'custom')
-rw-r--r--custom/ymir-nginx.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix
index 96633f00..701a1108 100644
--- a/custom/ymir-nginx.nix
+++ b/custom/ymir-nginx.nix
@@ -194,11 +194,11 @@ in {
194 include ${acme}; 194 include ${acme};
195 195
196 location ~ ^/(.+?)(/.*)?$ { 196 location ~ ^/(.+?)(/.*)?$ {
197 alias /home/$1/webdav$2; 197 alias /srv/www/webdav/$1$2;
198 autoindex on; 198 autoindex on;
199 199
200 auth_basic "WebDAV user directory of $1"; 200 auth_basic "WebDAV user directory of $1";
201 auth_basic_user_file /home/$1/webdav.htpasswd; 201 auth_basic_user_file /srv/www/webdav/$1.htpasswd;
202 202
203 client_body_temp_path /tmp/webdav.$1; 203 client_body_temp_path /tmp/webdav.$1;
204 dav_methods PUT DELETE MKCOL COPY MOVE; 204 dav_methods PUT DELETE MKCOL COPY MOVE;