Skip to content

Commit 659dd78

Browse files
committed
perf: update proxy pass
1 parent 7b4da8c commit 659dd78

4 files changed

Lines changed: 8 additions & 13 deletions

File tree

includes/chen.conf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
location /chen/ {
2-
set $chen_upstream chen:8082;
3-
proxy_pass http://$chen_upstream;
2+
proxy_pass http://chen:8082;
43
proxy_buffering off;
54
proxy_http_version 1.1;
65
proxy_request_buffering off;
@@ -13,4 +12,4 @@ location /chen/ {
1312
proxy_send_timeout 600;
1413
proxy_read_timeout 600;
1514
send_timeout 6000;
16-
}
15+
}

includes/core.conf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ location /private-media/ {
88
}
99

1010
location /ws/ {
11-
set $core_upstream core:8080;
12-
proxy_pass http://$core_upstream;
11+
proxy_pass http://core:8080;
1312
proxy_buffering off;
1413
proxy_http_version 1.1;
1514
proxy_set_header Upgrade $http_upgrade;
@@ -19,8 +18,7 @@ location /ws/ {
1918
}
2019

2120
location ~ ^/(core|api|media)/ {
22-
set $core_upstream core:8080;
23-
proxy_pass http://$core_upstream;
21+
proxy_pass http://core:8080;
2422
proxy_set_header Host $http_host;
2523
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2624
proxy_ignore_client_abort on;

includes/koko.conf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
location /koko/ {
2-
set $koko_upstream koko:5000;
3-
proxy_pass http://$koko_upstream;
2+
proxy_pass http://koko:5000;
43
proxy_buffering off;
54
proxy_http_version 1.1;
65
proxy_request_buffering off;
@@ -13,4 +12,4 @@ location /koko/ {
1312
proxy_send_timeout 600;
1413
proxy_read_timeout 600;
1514
send_timeout 6000;
16-
}
15+
}

includes/lion.conf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
location /lion/ {
2-
set $lion_upstream lion:8081;
3-
proxy_pass http://$lion_upstream;
2+
proxy_pass http://lion:8081;
43
proxy_buffering off;
54
proxy_http_version 1.1;
65
proxy_request_buffering off;
@@ -13,4 +12,4 @@ location /lion/ {
1312
proxy_send_timeout 600;
1413
proxy_read_timeout 600;
1514
send_timeout 6000;
16-
}
15+
}

0 commit comments

Comments
 (0)