From a472b426726c8610c92bd8b6e019d8f7673eac58 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 13 Mar 2024 19:04:14 +0800 Subject: [PATCH 1/3] =?UTF-8?q?perf:=20=E6=94=AF=E6=8C=81=20razor=20?= =?UTF-8?q?=E7=9A=84=E7=9B=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/razor.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 includes/razor.conf diff --git a/includes/razor.conf b/includes/razor.conf new file mode 100644 index 0000000..f3d25ea --- /dev/null +++ b/includes/razor.conf @@ -0,0 +1,15 @@ +location /razor/ { + proxy_pass http://razor:8084; + proxy_buffering off; + proxy_http_version 1.1; + proxy_request_buffering off; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_ignore_client_abort on; + proxy_connect_timeout 600; + proxy_send_timeout 600; + proxy_read_timeout 600; + send_timeout 6000; +} From 81e088cb0bdc9ee37f16e85dd0fff43e0aa5c7d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=B0=8F=E7=99=BD?= <296015668@qq.com> Date: Thu, 14 Mar 2024 10:57:39 +0800 Subject: [PATCH 2/3] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=20razor=20?= =?UTF-8?q?=E7=9A=84=E7=9B=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/{razor.conf => razor.conf.disabled} | 0 init.sh | 6 ++++++ 2 files changed, 6 insertions(+) rename includes/{razor.conf => razor.conf.disabled} (100%) diff --git a/includes/razor.conf b/includes/razor.conf.disabled similarity index 100% rename from includes/razor.conf rename to includes/razor.conf.disabled diff --git a/init.sh b/init.sh index 971536a..61bdba4 100755 --- a/init.sh +++ b/init.sh @@ -131,6 +131,12 @@ function config_components() { if [ "${KAEL_ENABLED}" == "0" ]; then mv /etc/nginx/includes/kael.conf /etc/nginx/includes/kael.conf.disabled fi + + if [ "${USE_XPACK}" == "1" ]; then + if [ "${RAZOR_ENABLED}" == "1" ]; then + mv /etc/nginx/includes/razor.conf.disabled /etc/nginx/includes/razor.conf + fi + fi } function main() { From ce6a5041e66f7986fc4cc445e7b43bc3eed7806d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=B0=8F=E7=99=BD?= <296015668@qq.com> Date: Mon, 15 Apr 2024 12:18:52 +0800 Subject: [PATCH 3/3] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=20razor=20?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.sh b/init.sh index 61bdba4..a3954db 100755 --- a/init.sh +++ b/init.sh @@ -133,7 +133,7 @@ function config_components() { fi if [ "${USE_XPACK}" == "1" ]; then - if [ "${RAZOR_ENABLED}" == "1" ]; then + if [ "${RAZOR_ENABLED}" != "0" ]; then mv /etc/nginx/includes/razor.conf.disabled /etc/nginx/includes/razor.conf fi fi