From 42d47bb550d79c375c8dfc8ca512ae2343751eab Mon Sep 17 00:00:00 2001 From: Redume Date: Mon, 14 Oct 2024 16:29:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=80=D0=BE=D1=83=D1=82=20api/configuration/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index f623cec..e8838fa 100644 --- a/nginx.conf +++ b/nginx.conf @@ -22,6 +22,14 @@ http { proxy_set_header X-Forwarded-Proto $scheme; } + location /api/configuration { + proxy_pass http://server_backend; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + location /api/getChart { proxy_pass http://chart_backend; proxy_set_header Host $host; @@ -33,7 +41,7 @@ http { server { listen 443 ssl; - server_name localhost; + server_name localhost; # Your domain ssl_certificate /etc/nginx/ssl/fullchain.pem; ssl_certificate_key /etc/nginx/ssl/privkey.pem; @@ -46,6 +54,14 @@ http { proxy_set_header X-Forwarded-Proto $scheme; } + location /api/configuration { + proxy_pass http://server_backend; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + location /api/getChart { proxy_pass http://chart_backend; proxy_set_header Host $host;