From 01724ea897ae81d1ddc77215da9560bac377e6ae Mon Sep 17 00:00:00 2001 From: bain Date: Sun, 5 Nov 2023 16:10:28 +0100 Subject: [PATCH] update minimal template --- .../templates/nginx-minimal.conf | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) 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; +}