summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
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 36011af8..31fa74f4 100644
--- a/custom/ymir-nginx.nix
+++ b/custom/ymir-nginx.nix
@@ -194,8 +194,8 @@ in {
194 include ${acme}; 194 include ${acme};
195 195
196 location ~ ^/(.+?)(/.*)?$ { 196 location ~ ^/(.+?)(/.*)?$ {
197 if ($scheme = http) { 197 if ($scheme = 'http') {
198 return 301 https://$host$request_uri; 198 rewrite ^ https://$host$request_uri? permanent;
199 } 199 }
200 200
201 alias /srv/www/webdav/$1$2; 201 alias /srv/www/webdav/$1$2;