From e1fe01934c29887bb9731b8472886d82d61e9731 Mon Sep 17 00:00:00 2001 From: Narayana Date: Wed, 12 Apr 2023 21:22:44 +0530 Subject: [PATCH] Update nginx-single-docker-image.conf --- nginx/nginx-single-docker-image.conf | 5 +++++ nginx/nginx.conf | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nginx/nginx-single-docker-image.conf b/nginx/nginx-single-docker-image.conf index 8d927a1b2..a5a871f46 100644 --- a/nginx/nginx-single-docker-image.conf +++ b/nginx/nginx-single-docker-image.conf @@ -18,6 +18,11 @@ server { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } + location /api/extension/ { + proxy_pass http://localhost:3000/api/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 4ea689700..e026a0d18 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -11,10 +11,13 @@ server { location / { proxy_pass http://planefrontend:3000/; } - location /api/ { proxy_pass http://planebackend:8000/api/; } + location /api/extension/ { + proxy_pass http://localhost:3000/api/; + } + } } \ No newline at end of file