From 65a570d357a5f6961be195269a52ed5d7a766249 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 5 Dec 2017 23:53:45 +0100 Subject: cleanup nginx --- custom/ymir-nginx.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'custom') diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index ca14b8e8..9d02460d 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix @@ -186,10 +186,13 @@ in { server { listen *:80; listen [::]:80; - server_name ~^webdav\.(yggdrasil\.li|141\.li|praseodym\.org)$; include ${acme}; + + location / { + return 301 https://$host$request_uri; + } } server { @@ -202,7 +205,7 @@ in { alias /srv/www/webdav/$1$2; autoindex on; - auth_basic "WebDAV user directory of $1"; + auth_basic "WebDAV directory ‘$1’"; auth_basic_user_file /srv/www/webdav/$1.htpasswd; client_body_temp_path /tmp/webdav.$1; -- cgit v1.2.3