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;