Skip to content

Commit

Permalink
Merge pull request #416 from jumpserver/master
Browse files Browse the repository at this point in the history
v3.10.8 master to v3.10
  • Loading branch information
BaiJiangJie authored Apr 18, 2024
2 parents d1c26a6 + c463c0b commit 1c22737
Show file tree
Hide file tree
Showing 40 changed files with 1,703 additions and 615 deletions.
2 changes: 0 additions & 2 deletions compose/docker-compose-celery-xpack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
celery:
image: ${REGISTRY:-docker.io}/jumpserver/core-ee:${VERSION}
2 changes: 0 additions & 2 deletions compose/docker-compose-celery.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
celery:
image: ${REGISTRY:-docker.io}/jumpserver/core-ce:${VERSION}
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-chen.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
chen:
image: ${REGISTRY:-docker.io}/jumpserver/chen:${VERSION}
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-core-xpack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
core:
image: ${REGISTRY:-docker.io}/jumpserver/core-ee:${VERSION}
2 changes: 0 additions & 2 deletions compose/docker-compose-core.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
core:
image: ${REGISTRY:-docker.io}/jumpserver/core-ce:${VERSION}
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-es.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.16
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-init-db-xpack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
core:
image: ${REGISTRY:-docker.io}/jumpserver/core-ee:${VERSION}
2 changes: 0 additions & 2 deletions compose/docker-compose-init-db.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
core:
image: ${REGISTRY:-docker.io}/jumpserver/core-ce:${VERSION}
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-kael.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
kael:
image: ${REGISTRY:-docker.io}/jumpserver/kael:${VERSION}
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-koko.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
koko:
image: ${REGISTRY:-docker.io}/jumpserver/koko:${VERSION}
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-lb.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
web:
ports:
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-lion.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
lion:
image: ${REGISTRY:-docker.io}/jumpserver/lion:${VERSION}
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-magnus-xpack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
magnus:
ports:
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-magnus.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
magnus:
image: ${REGISTRY:-docker.io}/jumpserver/magnus:${VERSION}
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-mariadb.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
mysql:
image: jumpserver/mariadb:10.6
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-minio.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
minio:
image: jumpserver/minio:latest
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-mysql.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
mysql:
image: jumpserver/mysql:5.7
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-network.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

networks:
net:
driver: bridge
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-network_v6.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

networks:
net:
driver: bridge
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-panda.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
panda:
image: ${REGISTRY:-docker.io}/jumpserver/panda:${VERSION}
Expand Down
6 changes: 2 additions & 4 deletions compose/docker-compose-razor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
razor:
image: ${REGISTRY:-registry.fit2cloud.com}/jumpserver/razor:${VERSION}
Expand All @@ -17,10 +15,10 @@ services:
- ${VOLUME_DIR}/razor/data:/opt/razor/data
- ${CONFIG_DIR}/nginx/cert:/opt/razor/cert
healthcheck:
test: "ps axu | grep -v 'grep' | grep 'razor'"
test: "curl -fsL http://localhost:8084/razor/health/ > /dev/null"
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
networks:
- net
- net
3 changes: 3 additions & 0 deletions compose/docker-compose-receptor-xpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
services:
receptor:
image: ${REGISTRY:-docker.io}/jumpserver/core-ee:${VERSION}
20 changes: 20 additions & 0 deletions compose/docker-compose-receptor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
services:
receptor:
image: ${REGISTRY:-docker.io}/jumpserver/core-ce:${VERSION}
container_name: jms_receptor
hostname: jms_receptor
ulimits:
core: 0
restart: always
tty: true
command: start receptor
volumes:
- ${VOLUME_DIR}/core/data/share:/opt/jumpserver/data/share
healthcheck:
test: "test -S /opt/jumpserver/data/share/control.sock || exit 1"
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
networks:
- net
2 changes: 0 additions & 2 deletions compose/docker-compose-redis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
redis:
image: jumpserver/redis:6.2
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-video-worker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
video:
image: ${REGISTRY:-registry.fit2cloud.com}/jumpserver/video-worker:${VERSION}
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-video.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
video:
image: ${REGISTRY:-registry.fit2cloud.com}/jumpserver/video-worker:${VERSION}
Expand Down
5 changes: 5 additions & 0 deletions compose/docker-compose-web-xpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
web:
environment:
USE_XPACK: ${USE_XPACK:-0}
RAZOR_ENABLED: ${RAZOR_ENABLED:-1}
4 changes: 1 addition & 3 deletions compose/docker-compose-web.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
web:
image: ${REGISTRY:-docker.io}/jumpserver/web:${VERSION}
Expand All @@ -11,9 +9,9 @@ services:
tty: true
environment:
HTTP_PORT: ${HTTP_PORT:-80}
USE_LB: ${USE_LB:-1}
USE_IPV6: ${USE_IPV6:-0}
CLIENT_MAX_BODY_SIZE: ${CLIENT_MAX_BODY_SIZE:-4096m}
USE_LB: ${USE_LB:-1}
CORE_ENABLED: ${CORE_ENABLED:-1}
KOKO_ENABLED: ${KOKO_ENABLED:-1}
LION_ENABLED: ${LION_ENABLED:-1}
Expand Down
2 changes: 0 additions & 2 deletions compose/docker-compose-xrdp.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2.4'

services:
xrdp:
image: ${REGISTRY:-registry.fit2cloud.com}/jumpserver/xrdp:${VERSION}
Expand Down
3 changes: 2 additions & 1 deletion config-example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ PERIOD_TASK_ENABLED=true
# SESSION_EXPIRE_AT_BROWSER_CLOSE=true 表示关闭浏览器即 session 过期
#
# SESSION_COOKIE_AGE=86400
SESSION_EXPIRE_AT_BROWSER_CLOSE=true
SESSION_EXPIRE_AT_BROWSER_CLOSE=false

# 可信任 DOMAINS 定义,
# 定义可信任的访问 IP, 请根据实际情况修改, 如果是公网 IP 请改成对应的公网 IP,
Expand All @@ -136,6 +136,7 @@ DOMAINS=
# CHEN_ENABLED=0
# KAEL_ENABLED=0
# PANDA_ENABLED=0
# WEB_ENABLED=0

# Lion 开启字体平滑, 优化体验
#
Expand Down
19 changes: 10 additions & 9 deletions jmsctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,14 @@ function usage() {
echo
echo "Installation Commands: "
echo " install $(gettext 'Install JumpServer')"
echo " upgrade [version] $(gettext 'Upgrade JumpServer')"
echo " check_update $(gettext 'Check for updates JumpServer')"
echo " reconfig $(gettext 'Reconfiguration JumpServer')"
echo
echo "Management Commands: "
echo " start $(gettext 'Start JumpServer')"
echo " stop $(gettext 'Stop JumpServer')"
echo " restart $(gettext 'Restart JumpServer')"
echo " status $(gettext 'Check JumpServer')"
echo " down $(gettext 'Offline JumpServer')"
echo " config $(gettext 'Configuration Tools')"
echo " start $(gettext 'Start JumpServer')"
echo " stop $(gettext 'Stop JumpServer')"
echo " restart $(gettext 'Restart JumpServer')"
echo " status $(gettext 'Check JumpServer')"
echo " down $(gettext 'Offline JumpServer')"
echo " uninstall $(gettext 'Uninstall JumpServer')"
echo
echo "More Commands: "
Expand Down Expand Up @@ -184,7 +182,7 @@ function main() {

if [[ "${action}" == "help" || "${action}" == "h" || "${action}" == "-h" || "${action}" == "--help" ]]; then
echo ""
elif [[ "${action}" == "install" || "${action}" == "reconfig" ]]; then
elif [[ "${action}" == "install" || "${action}" == "config" || "${action}" == "reconfig" ]]; then
echo ""
else
pre_check || return 3
Expand All @@ -200,6 +198,9 @@ function main() {
check_update)
check_update
;;
config)
bash "${SCRIPT_DIR}/config.sh" "$target"
;;
reconfig)
${EXE} down -v
bash "${SCRIPT_DIR}/1_config_jumpserver.sh"
Expand Down
Loading

0 comments on commit 1c22737

Please sign in to comment.