File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11ARG VERSION=dev
2- FROM jumpserver/web-static:20260713_024102 AS static
2+ FROM jumpserver/web-static:20260716_073445 AS static
33FROM jumpserver/web:${VERSION}-ce
44
55COPY --from=static /opt/ /opt/
Original file line number Diff line number Diff line change 11location /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+ }
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ location /private-media/ {
88}
99
1010location /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
2120location ~ ^/(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;
Original file line number Diff line number Diff line change 11location /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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 11location /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+ }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ OPENSSH_VERSION=v9.4.0.0
1111MONGOSH_VERSION=2.2.12
1212TINKER_VERSION=v0.2.3
1313CLIENT_VERSION=4.1.5
14- CLIENT_NAME=JumpServer
14+ CLIENT_NAME=JumpServer
You can’t perform that action at this time.
0 commit comments