Skip to content

Commit b4e2563

Browse files
committed
Merge branch 'dev' of github.com:jumpserver/docker-web into dev
2 parents 4a49565 + 659dd78 commit b4e2563

9 files changed

Lines changed: 35 additions & 17 deletions

File tree

Dockerfile-ee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG VERSION=dev
2-
FROM jumpserver/web-static:20260713_024102 AS static
2+
FROM jumpserver/web-static:20260716_073445 AS static
33
FROM jumpserver/web:${VERSION}-ce
44

55
COPY --from=static /opt/ /opt/

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/common.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@
4242
}
4343

4444
location @redirect_oss {
45-
rewrite ^/download/(.*)$ https://static.jumpserver.org/download/$1?v=osm;
45+
rewrite ^/download/(.*)$ https://static.jumpserver.org/download/$1;
4646
}

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/kotl.conf.disabled

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
location ~ ^/jdmc(?:/|$) {
2+
proxy_pass https://host.docker.internal:9898;
3+
proxy_ssl_verify off;
4+
proxy_buffering off;
5+
proxy_request_buffering off;
6+
proxy_http_version 1.1;
7+
proxy_set_header Host $host;
8+
proxy_set_header Upgrade $http_upgrade;
9+
proxy_set_header Connection "upgrade";
10+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
11+
proxy_ignore_client_abort on;
12+
proxy_connect_timeout 600;
13+
proxy_send_timeout 600;
14+
proxy_read_timeout 600;
15+
send_timeout 6000;
16+
}

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+
}

init.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function config_https() {
7272
config_nginx "${config_file}"
7373

7474
sed -i "s@server web:.*;@server localhost:51980;@g" "${config_file}"
75+
sed -i 's@https://$server_name$request_uri;@https://$host$request_uri;@g' "${config_file}"
7576

7677
if [ "${USE_IPV6}" == "1" ]; then
7778
sed -i "s@# listen \[::\]:443@listen \[::\]:443@g" "${config_file}"
@@ -112,6 +113,12 @@ function config_components() {
112113
safe_move /etc/nginx/includes/chen.conf /etc/nginx/includes/chen.conf.disabled
113114
fi
114115

116+
if [ "${KOTL_ENABLED}" == "1" ]; then
117+
safe_move /etc/nginx/includes/kotl.conf.disabled /etc/nginx/includes/kotl.conf
118+
else
119+
safe_move /etc/nginx/includes/kotl.conf /etc/nginx/includes/kotl.conf.disabled
120+
fi
121+
115122
if [ "${FACELIVE_ENABLED}" == "0" ]; then
116123
safe_move /etc/nginx/includes/facelive.conf /etc/nginx/includes/facelive.conf.disabled
117124
fi
@@ -158,4 +165,4 @@ function main() {
158165
config_gzip
159166
}
160167

161-
main
168+
main

versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ OPENSSH_VERSION=v9.4.0.0
1111
MONGOSH_VERSION=2.2.12
1212
TINKER_VERSION=v0.2.3
1313
CLIENT_VERSION=4.1.5
14-
CLIENT_NAME=JumpServer
14+
CLIENT_NAME=JumpServer

0 commit comments

Comments
 (0)