changeset 11:bbafc54bbd26

fix ssl renew
author Vadim Filimonov <fffilimonov@yandex.ru>
date Thu, 28 Jul 2022 16:10:05 +0300
parents a7187a447835
children c560b4e2f056
files nginx.conf nginx.default.conf
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
diff -r a7187a447835 -r bbafc54bbd26 nginx.conf
--- a/nginx.conf	Tue Jul 12 19:40:50 2022 -0600
+++ b/nginx.conf	Thu Jul 28 16:10:05 2022 +0300
@@ -16,12 +16,7 @@
 	error_log off;
 
 	server {
-	    listen 80;
-		location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" {
-			default_type text/plain;
-			return 200 "$1.ZVfdXrOoSbmeTJ4l7OuY0SI388jxO8JHcxGPdqM1Jgk";
-		}
-
+		listen 80;
 		include nginx.default.conf;
 		include config/nginx.custom.*.conf;
 		include config/nginx.conf;
diff -r a7187a447835 -r bbafc54bbd26 nginx.default.conf
--- a/nginx.default.conf	Tue Jul 12 19:40:50 2022 -0600
+++ b/nginx.default.conf	Thu Jul 28 16:10:05 2022 +0300
@@ -5,6 +5,11 @@
 		proxy_set_header X-Real-IP $remote_addr;
 		charset utf-8;
 
+		location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" {
+			default_type text/plain;
+			return 200 "$1.ZVfdXrOoSbmeTJ4l7OuY0SI388jxO8JHcxGPdqM1Jgk";
+		}
+
 		location / {
 			proxy_pass http://127.0.0.1:8080;
 		}