From 25645a11450efd5a31c78f89e3cbd2bc69ace23f Mon Sep 17 00:00:00 2001 From: Matteo Gheza Date: Sat, 24 Feb 2024 17:05:15 +0100 Subject: [PATCH] Add proxy configuration for /docs endpoint --- docker_nginx/default.conf | 6 ++++++ frontend/proxy.conf.json | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docker_nginx/default.conf b/docker_nginx/default.conf index fa56732..eaa7ad0 100644 --- a/docker_nginx/default.conf +++ b/docker_nginx/default.conf @@ -13,4 +13,10 @@ server { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } + + location /docs { + proxy_pass http://backend:80; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } } diff --git a/frontend/proxy.conf.json b/frontend/proxy.conf.json index 0fb5f72..e31347c 100644 --- a/frontend/proxy.conf.json +++ b/frontend/proxy.conf.json @@ -3,5 +3,10 @@ "target": "http://allertavvf.test/", "secure": false, "changeOrigin": true + }, + "/docs": { + "target": "http://allertavvf.test/", + "secure": false, + "changeOrigin": true } -} \ No newline at end of file +}