Remove unnecessary rewrite rule from Nginx configuration for API routing
This commit is contained in:
@@ -14,7 +14,6 @@ server {
|
|||||||
|
|
||||||
location /api/ {
|
location /api/ {
|
||||||
set $backend http://server:3000;
|
set $backend http://server:3000;
|
||||||
rewrite ^/api/?(.*)$ /$1 break;
|
|
||||||
proxy_pass $backend;
|
proxy_pass $backend;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|||||||
Reference in New Issue
Block a user