Skip to content

Commit b9fc0b8

Browse files
committed
fix: #86ew03681 Update Nginx configuration to remove trailing slash in proxy_pass directive
- Modified the proxy_pass directive in both default.conf and default.local.conf to remove the trailing slash for consistent behavior in API request handling.
1 parent 06119e3 commit b9fc0b8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

nginx/default.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ server {
5959

6060
# Proxy API requests to server service
6161
location /api/ {
62-
proxy_pass http://server:8081/;
62+
proxy_pass http://server:8081;
6363
proxy_http_version 1.1;
6464
proxy_set_header Host $host;
6565
proxy_set_header X-Real-IP $remote_addr;

nginx/default.local.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ server {
3030

3131
# Proxy API requests to server service
3232
location /api/ {
33-
proxy_pass http://server:8081/;
33+
proxy_pass http://server:8081;
3434
proxy_http_version 1.1;
3535
proxy_set_header Host $host;
3636
proxy_set_header X-Real-IP $remote_addr;

0 commit comments

Comments
 (0)