Skip to content

Commit a8ed5be

Browse files
committed
Fix Swagger requests failed when accessed via nginx
Signed-off-by: dodo920306 <dodo920306@gmail.com>
1 parent 9ff202a commit a8ed5be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dashboard/cello.conf

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

2121
location /api {
2222
proxy_pass http://cello-api-engine:8080;
23-
proxy_set_header Host $host;
23+
proxy_set_header Host $host:$server_port;
2424
proxy_set_header X-Real-IP $remote_addr;
2525
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2626
proxy_set_header X-Forwarded-Proto $scheme;

0 commit comments

Comments
 (0)