nginx-configurator/nginx_configurator/templates/nginx-minimal.conf
2023-11-05 16:10:28 +01:00

22 lines
359 B
Text

# ID: {{ id }}
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;
}