From 9baf588e5e274bf00f1de477c55127d991eb2d30 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 20 Aug 2023 23:38:47 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20refactor(nginx.conf):=20remove?= =?UTF-8?q?=20redundant=20code=20for=20proxying=20/api/v1/=20and=20/health?= =?UTF-8?q?=20routes=20to=20backend=20service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/nginx.conf | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/frontend/nginx.conf b/src/frontend/nginx.conf index d069a206d..cabf31c7a 100644 --- a/src/frontend/nginx.conf +++ b/src/frontend/nginx.conf @@ -15,21 +15,6 @@ server { try_files $uri $uri/ /index.html =404; } - location ~ ^/api/v1/ { # Matching the /api/v1/ route - proxy_pass __BACKEND_URL__; # URL of your backend service - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection 'upgrade'; - proxy_set_header Host $host; - proxy_cache_bypass $http_upgrade; - } - location /health { # Matching the /health route - proxy_pass __BACKEND_URL__; # URL of your backend service - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection 'upgrade'; - proxy_set_header Host $host; - proxy_cache_bypass $http_upgrade; - } + include /etc/nginx/extra-conf.d/*.conf; }