remove https redirect, handle it in default server

This commit is contained in:
bain 2023-11-17 14:42:06 +01:00
parent bd7f372f97
commit 4ccddfe58d
Signed by: bain
GPG key ID: 31F0F25E3BED0B9B
2 changed files with 0 additions and 26 deletions

View file

@ -9,14 +9,3 @@ server {
return 200; return 200;
} }
server {
listen 80;
listen [::]:80;
server_name <domain>;
include include/acme-challenge.conf; # potřeba pro ACME
return 301 https://$host$request_uri;
}

View file

@ -32,18 +32,3 @@ server {
} }
} }
server {
listen 80;
listen [::]:80;
server_name{% for domain in domains %} {{ domain }}{% endfor %};
location ^~ /.well-known/acme-challenge {
alias /var/www/dehydrated;
}
location / {
return 301 https://$host$request_uri;
}
}