[nginx/app/tls] ++update

This commit is contained in:
Nico Schottelius 2021-06-18 21:08:53 +02:00
commit cda1990935
6 changed files with 66 additions and 22 deletions

View file

@ -0,0 +1,16 @@
server {
listen *:80;
listen [::]:80;
server_name _;
# Forward for certbot
location /.well-known/acme-challenge/ {
root /usr/share/nginx/html;
}
# Everything else -> ssl
location / {
return 301 https://$host$request_uri;
}
}