From 748e7a3d828b3f5e9e7477301fd0a8cdb8f4d7f1 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 16 Jul 2026 22:08:15 +0800 Subject: [PATCH 1/2] perf: update web redirect --- config_init/nginx/lb_http_server.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_init/nginx/lb_http_server.conf b/config_init/nginx/lb_http_server.conf index ef12af4..b6318b3 100644 --- a/config_init/nginx/lb_http_server.conf +++ b/config_init/nginx/lb_http_server.conf @@ -8,7 +8,7 @@ server { listen 80; # listen [::]:80; # server_name demo.jumpserver.org; # 取消注释并自行修改成你自己的域名 - return 307 https://$server_name$request_uri; + return 307 https://$host$request_uri; } server { From 93acb06ccaa07dde03d25a229590632cfcb9de80 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 16 Jul 2026 23:00:12 +0800 Subject: [PATCH 2/2] perf: update use lb --- scripts/gists/service.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gists/service.sh b/scripts/gists/service.sh index 91083ad..5aef6c9 100644 --- a/scripts/gists/service.sh +++ b/scripts/gists/service.sh @@ -173,7 +173,7 @@ function get_docker_compose_cmd_line() { fi fi - if [[ "${use_lb}" == "1" ]]; then + if [[ "${use_lb}" == "1" && -n "${https_port}" ]]; then cmd+=" -f compose/web.https.yml" fi