summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-12-05 23:20:26 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-12-05 23:20:26 +0100
commit9491ee71c04d82ab026702d28c5f9ed67aba80d7 (patch)
tree9e164a60f75a4d2c353aef8d9fc61d1ebc597883 /custom
parent2335c598e73034738cdfb12e885589d890f6ee16 (diff)
downloadnixos-9491ee71c04d82ab026702d28c5f9ed67aba80d7.tar
nixos-9491ee71c04d82ab026702d28c5f9ed67aba80d7.tar.gz
nixos-9491ee71c04d82ab026702d28c5f9ed67aba80d7.tar.bz2
nixos-9491ee71c04d82ab026702d28c5f9ed67aba80d7.tar.xz
nixos-9491ee71c04d82ab026702d28c5f9ed67aba80d7.zip
Replace ftp with webdav
Diffstat (limited to 'custom')
-rw-r--r--custom/ymir-nginx.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix
index a1de81c3..96633f00 100644
--- a/custom/ymir-nginx.nix
+++ b/custom/ymir-nginx.nix
@@ -184,6 +184,28 @@ in {
184 proxy_pass http://bragi.asgard.yggdrasil/; 184 proxy_pass http://bragi.asgard.yggdrasil/;
185 } 185 }
186 } 186 }
187
188 server {
189 listen *:443 ssl;
190 listen [::]:443 ssl;
191
192 server_name ~^webdav\.(yggdrasil\.li|141\.li|praseodym\.org)$;
193
194 include ${acme};
195
196 location ~ ^/(.+?)(/.*)?$ {
197 alias /home/$1/webdav$2;
198 autoindex on;
199
200 auth_basic "WebDAV user directory of $1";
201 auth_basic_user_file /home/$1/webdav.htpasswd;
202
203 client_body_temp_path /tmp/webdav.$1;
204 dav_methods PUT DELETE MKCOL COPY MOVE;
205 create_full_put_path on;
206 dav_access user:rw group:r all:r;
207 }
208 }
187 ''; 209 '';
188 }; 210 };
189} 211}