From 9171087da87bc16a8b85c8444cb92506bedcdf02 Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 29 Jul 2026 14:33:05 +0800 Subject: [PATCH] perf: update proxy pass --- includes/chen.conf | 5 ++--- includes/core.conf | 6 ++---- includes/koko.conf | 5 ++--- includes/lion.conf | 5 ++--- 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/includes/chen.conf b/includes/chen.conf index eac1e20..28f8289 100644 --- a/includes/chen.conf +++ b/includes/chen.conf @@ -1,6 +1,5 @@ location /chen/ { - set $chen_upstream chen:8082; - proxy_pass http://$chen_upstream; + proxy_pass http://chen:8082; proxy_buffering off; proxy_http_version 1.1; proxy_request_buffering off; @@ -13,4 +12,4 @@ location /chen/ { proxy_send_timeout 600; proxy_read_timeout 600; send_timeout 6000; -} \ No newline at end of file +} diff --git a/includes/core.conf b/includes/core.conf index da07973..2bde882 100644 --- a/includes/core.conf +++ b/includes/core.conf @@ -8,8 +8,7 @@ location /private-media/ { } location /ws/ { - set $core_upstream core:8080; - proxy_pass http://$core_upstream; + proxy_pass http://core:8080; proxy_buffering off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; @@ -19,8 +18,7 @@ location /ws/ { } location ~ ^/(core|api|media)/ { - set $core_upstream core:8080; - proxy_pass http://$core_upstream; + proxy_pass http://core:8080; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_ignore_client_abort on; diff --git a/includes/koko.conf b/includes/koko.conf index 7ccfac6..9ebe26f 100644 --- a/includes/koko.conf +++ b/includes/koko.conf @@ -1,6 +1,5 @@ location /koko/ { - set $koko_upstream koko:5000; - proxy_pass http://$koko_upstream; + proxy_pass http://koko:5000; proxy_buffering off; proxy_http_version 1.1; proxy_request_buffering off; @@ -13,4 +12,4 @@ location /koko/ { proxy_send_timeout 600; proxy_read_timeout 600; send_timeout 6000; -} \ No newline at end of file +} diff --git a/includes/lion.conf b/includes/lion.conf index 5ef8cad..4f83ddd 100644 --- a/includes/lion.conf +++ b/includes/lion.conf @@ -1,6 +1,5 @@ location /lion/ { - set $lion_upstream lion:8081; - proxy_pass http://$lion_upstream; + proxy_pass http://lion:8081; proxy_buffering off; proxy_http_version 1.1; proxy_request_buffering off; @@ -13,4 +12,4 @@ location /lion/ { proxy_send_timeout 600; proxy_read_timeout 600; send_timeout 6000; -} \ No newline at end of file +}