diff --git a/nginx_configurator/templates/nginx-minimal.conf b/nginx_configurator/templates/nginx-minimal.conf index 5884073..9e24e09 100644 --- a/nginx_configurator/templates/nginx-minimal.conf +++ b/nginx_configurator/templates/nginx-minimal.conf @@ -1 +1,22 @@ # ID: {{ id }} + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name ; # AUTOSSL > {{ id }} + include ssl/{{ id }}.conf; + + return 200; +} + +server { + listen 80; + listen [::]:80; + + server_name ; + + include include/acme-challenge.conf; # potřeba pro ACME + + return 301 https://$host$request_uri; +}