From 4ccddfe58d7895f307f03b109b7e1af751f116a8 Mon Sep 17 00:00:00 2001 From: bain Date: Fri, 17 Nov 2023 14:42:06 +0100 Subject: [PATCH] remove https redirect, handle it in default server --- nginx_configurator/templates/nginx-minimal.conf | 11 ----------- nginx_configurator/templates/nginx-site.conf | 15 --------------- 2 files changed, 26 deletions(-) diff --git a/nginx_configurator/templates/nginx-minimal.conf b/nginx_configurator/templates/nginx-minimal.conf index 9e24e09..718df9f 100644 --- a/nginx_configurator/templates/nginx-minimal.conf +++ b/nginx_configurator/templates/nginx-minimal.conf @@ -9,14 +9,3 @@ server { return 200; } - -server { - listen 80; - listen [::]:80; - - server_name ; - - include include/acme-challenge.conf; # potřeba pro ACME - - return 301 https://$host$request_uri; -} diff --git a/nginx_configurator/templates/nginx-site.conf b/nginx_configurator/templates/nginx-site.conf index 65ccef1..a148ebe 100644 --- a/nginx_configurator/templates/nginx-site.conf +++ b/nginx_configurator/templates/nginx-site.conf @@ -32,18 +32,3 @@ server { } } - -server { - listen 80; - listen [::]:80; - - server_name{% for domain in domains %} {{ domain }}{% endfor %}; - - location ^~ /.well-known/acme-challenge { - alias /var/www/dehydrated; - } - - location / { - return 301 https://$host$request_uri; - } -}