mirror of
https://git.nolog.cz/NoLog.cz/nginx-configurator.git
synced 2025-01-31 03:43:35 +01:00
remove https redirect, handle it in default server
This commit is contained in:
parent
bd7f372f97
commit
4ccddfe58d
2 changed files with 0 additions and 26 deletions
|
@ -9,14 +9,3 @@ server {
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue