From 6e502b4bf84d8b3b086b815d3f13111cf14d90c2 Mon Sep 17 00:00:00 2001 From: Kozin Date: Mon, 25 Mar 2024 09:32:00 +0300 Subject: [PATCH] [-] Unnecessary default.conf. R: nginx_loc.conf is implemented. FB: Changed the docker-compose-local.yaml setting to use nginx_loc.conf. --- infra/docker-compose-local.yaml | 2 +- infra/nginx/default.conf | 30 ------------------------------ 2 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 infra/nginx/default.conf diff --git a/infra/docker-compose-local.yaml b/infra/docker-compose-local.yaml index a458edd..dbd214a 100644 --- a/infra/docker-compose-local.yaml +++ b/infra/docker-compose-local.yaml @@ -68,7 +68,7 @@ services: ports: - "80:80" volumes: - - ./nginx/default.conf:/etc/nginx/conf.d/default.conf + - ./nginx/nginx_loc.conf:/etc/nginx/conf.d/default.conf - static_volume:/staticfiles/ depends_on: - backend diff --git a/infra/nginx/default.conf b/infra/nginx/default.conf deleted file mode 100644 index 093b3df..0000000 --- a/infra/nginx/default.conf +++ /dev/null @@ -1,30 +0,0 @@ -server { - listen 80; - listen [::]:80; - server_name localhost; - server_tokens off; - - root /staticfiles; - - location /api/v1/ { - proxy_set_header Host $http_host; - proxy_pass http://backend:8000/api/v1/; - } - - location /admin/ { - proxy_set_header Host $http_host; - proxy_pass http://backend:8000/admin/; - } - - location /.well-known/acme-challenge/ { - root /certbot; - } - - location / { - try_files $uri $uri.html $uri/ =404; - } - error_page 404 /404.html; - location = /404.html { - internal; - } -}