diff --git a/script/docker/nginx/web/nginx.conf b/script/docker/nginx/web/nginx.conf index 0cdbd84a..1f19bda0 100644 --- a/script/docker/nginx/web/nginx.conf +++ b/script/docker/nginx/web/nginx.conf @@ -46,13 +46,15 @@ http { } - location /api { + location ^~/api { 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_buffering off; + rewrite ^/api/(.*)$ /$1 break; proxy_pass http://gateway; } } + }