diff --git a/docker/frontend/nginx.conf b/docker/frontend/nginx.conf index e2ecb990d..34ba0beaa 100644 --- a/docker/frontend/nginx.conf +++ b/docker/frontend/nginx.conf @@ -68,6 +68,28 @@ http { proxy_cache off; } + # Proxy API docs to backend + location /v3/api-docs { + proxy_pass ${VITE_API_BASE_URL}/v3/api-docs; + 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; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Port $server_port; + } + + # Proxy v1 API docs to backend + location /v1/api-docs { + proxy_pass ${VITE_API_BASE_URL}/v1/api-docs; + 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; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Port $server_port; + } + # Cache static assets location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { expires 1y;