From 7701eb9f84eb048fa834d6ebff81d9b71b42853d Mon Sep 17 00:00:00 2001 From: Denis Shtanskiy Date: Sun, 21 Apr 2024 18:08:27 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B4=D0=B8=D1=80=D0=B5=D0=BA=D1=82=D0=B8=D0=B2?= =?UTF-8?q?=D1=83=20location?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/nginx/nginx_dev.conf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/infra/nginx/nginx_dev.conf b/infra/nginx/nginx_dev.conf index c5003bb..3e37eb1 100644 --- a/infra/nginx/nginx_dev.conf +++ b/infra/nginx/nginx_dev.conf @@ -1,9 +1,6 @@ - root /staticfiles; +root /staticfiles; - location /.well-known/acme-challenge/ { - root /certbot; - } server { listen 80; @@ -11,6 +8,10 @@ server { server_name 89.23.117.80 devcodepet.tw1.ru; server_tokens off; + location /.well-known/acme-challenge/ { + root /certbot; + } + location / { if ($http_x_forwarded_proto != 'https') { return https://$host$request_uri;