mirror of
https://git.nolog.cz/NoLog.cz/nginx-configurator.git
synced 2025-01-31 11:53:35 +01:00
22 lines
359 B
Text
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;
|
|
}
|