diff options
Diffstat (limited to 'custom/ymir-nginx.nix')
-rw-r--r-- | custom/ymir-nginx.nix | 22 |
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 | } |