nginx: fix letsencrypt redirect

This commit is contained in:
Gabriel Ebner 2015-12-05 13:59:38 +01:00
parent e73fc0f951
commit 46ab866076
2 changed files with 6 additions and 2 deletions

@ -83,8 +83,10 @@ in
alias /etc/sslcerts/acmeroot/.well-known/acme-challenge;
}
location / {
rewrite ^(.*) https://$host$1 permanent;
}
}
server {
listen [::]:443;

@ -26,8 +26,10 @@
alias /etc/sslcerts/acmeroot/.well-known/acme-challenge;
}
location / {
rewrite ^(.*) https://gebner.org$1 permanent;
}
}
'';
};
}