nginx-configurator/nginx_configurator/templates/nginx-minimal.conf

23 lines
359 B
Text
Raw Normal View History

2023-11-04 23:02:34 +01:00
# ID: {{ id }}
2023-11-05 16:10:28 +01:00
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name <domain>; # AUTOSSL > {{ id }}
include ssl/{{ id }}.conf;
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;
}