summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-12-05 23:46:20 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-12-05 23:46:20 +0100
commit4b1dba1e174462615bf032c2e756cb80198f04f7 (patch)
treed69e566bed437625169e7b2b6c9b0228993f42ae
parente1a37ea9cce98befda78db9360a0802c8d4da12e (diff)
downloadnixos-4b1dba1e174462615bf032c2e756cb80198f04f7.tar
nixos-4b1dba1e174462615bf032c2e756cb80198f04f7.tar.gz
nixos-4b1dba1e174462615bf032c2e756cb80198f04f7.tar.bz2
nixos-4b1dba1e174462615bf032c2e756cb80198f04f7.tar.xz
nixos-4b1dba1e174462615bf032c2e756cb80198f04f7.zip
-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;