Skip to content

Commit cc0bff1

Browse files
committed
Merge branch 'osm' of github.com:jumpserver/docker-web into osm
2 parents a7b13d8 + 8c569df commit cc0bff1

7 files changed

Lines changed: 14 additions & 6 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ARG TOOLS=" \
1414
curl \
1515
apache2-utils \
1616
vim \
17+
logrotate \
1718
"
1819

1920
RUN set -ex \

includes/chen.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
location /chen/ {
2-
proxy_pass http://chen:8082;
2+
set $chen_upstream chen:8082;
3+
proxy_pass http://$chen_upstream;
34
proxy_buffering off;
45
proxy_http_version 1.1;
56
proxy_request_buffering off;

includes/common.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
location /web/health/ {
1919
access_log off;
20-
add_header Content-Type 'application/json';
20+
default_type application/json;
2121
return 200 '{"status": "ok"}';
2222
}
2323

includes/core.conf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ location /private-media/ {
88
}
99

1010
location /ws/ {
11-
proxy_pass http://core:8080;
11+
set $core_upstream core:8080;
12+
proxy_pass http://$core_upstream;
1213
proxy_buffering off;
1314
proxy_http_version 1.1;
1415
proxy_set_header Upgrade $http_upgrade;
@@ -18,7 +19,8 @@ location /ws/ {
1819
}
1920

2021
location ~ ^/(core|api|media)/ {
21-
proxy_pass http://core:8080;
22+
set $core_upstream core:8080;
23+
proxy_pass http://$core_upstream;
2224
proxy_set_header Host $http_host;
2325
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2426
proxy_ignore_client_abort on;

includes/koko.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
location /koko/ {
2-
proxy_pass http://koko:5000;
2+
set $koko_upstream koko:5000;
3+
proxy_pass http://$koko_upstream;
34
proxy_buffering off;
45
proxy_http_version 1.1;
56
proxy_request_buffering off;

includes/lion.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
location /lion/ {
2-
proxy_pass http://lion:8081;
2+
set $lion_upstream lion:8081;
3+
proxy_pass http://$lion_upstream;
34
proxy_buffering off;
45
proxy_http_version 1.1;
56
proxy_request_buffering off;

nginx.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ stream {
2525
http {
2626
include /etc/nginx/mime.types;
2727
default_type application/octet-stream;
28+
resolver 127.0.0.11 valid=10s ipv6=off;
29+
resolver_timeout 5s;
2830

2931
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
3032
'$status $body_bytes_sent "$http_referer" '

0 commit comments

Comments
 (0)