Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions compose/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ services:
command: start web
env_file:
- ${CONFIG_FILE}
environment:
TIME_ZONE: ${TZ:-Asia/Shanghai}
volumes:
- ${CONFIG_DIR}/certs:/opt/jumpserver/data/certs
- ${VOLUME_DIR}/core/data:/opt/jumpserver/data
Expand Down
2 changes: 1 addition & 1 deletion compose/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
- ${VOLUME_DIR}/elasticsearch/data:/usr/share/elasticsearch/data
- ${VOLUME_DIR}/elasticsearch/logs:/usr/share/elasticsearch/logs
environment:
TZ: ${TIME_ZONE:-Asia/Shanghai}
TZ: ${TZ:-Asia/Shanghai}
cluster.name: docker-cluster
discovery.type: single-node
network.host: 0.0.0.0
Expand Down
2 changes: 1 addition & 1 deletion compose/mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
restart: always
command: --character-set-server=utf8 --collation-server=utf8_general_ci
environment:
TZ: ${TIME_ZONE:-Asia/Shanghai}
TZ: ${TZ:-Asia/Shanghai}
DB_PORT: $DB_PORT
MARIADB_ROOT_PASSWORD: $DB_PASSWORD
MARIADB_DATABASE: $DB_NAME
Expand Down
2 changes: 1 addition & 1 deletion compose/minio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
restart: always
command: "server /data --console-address :9001"
environment:
TZ: ${TIME_ZONE:-Asia/Shanghai}
TZ: ${TZ:-Asia/Shanghai}
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: $BOOTSTRAP_TOKEN
MINIO_REGION_NAME: us-west-rack2
Expand Down
2 changes: 1 addition & 1 deletion compose/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
restart: always
command: --character-set-server=utf8
environment:
TZ: ${TIME_ZONE:-Asia/Shanghai}
TZ: ${TZ:-Asia/Shanghai}
DB_PORT: $DB_PORT
MYSQL_ROOT_PASSWORD: $DB_PASSWORD
MYSQL_DATABASE: $DB_NAME
Expand Down
2 changes: 1 addition & 1 deletion compose/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
container_name: jms_postgresql
restart: always
environment:
TZ: ${TIME_ZONE:-Asia/Shanghai}
TZ: ${TZ:-Asia/Shanghai}
POSTGRES_DB: $DB_NAME
POSTGRES_USER: $DB_USER
POSTGRES_PASSWORD: $DB_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion compose/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
restart: always
command: ["redis-server", "/etc/redis.conf", "--requirepass", "$REDIS_PASSWORD"]
environment:
TZ: ${TIME_ZONE:-Asia/Shanghai}
TZ: ${TZ:-Asia/Shanghai}
REDIS_PORT: $REDIS_PORT
REDIS_PASSWORD: $REDIS_PASSWORD
volumes:
Expand Down
2 changes: 1 addition & 1 deletion compose/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
core: 0
restart: always
environment:
TZ: ${TIME_ZONE:-Asia/Shanghai}
TZ: ${TZ:-Asia/Shanghai}
HTTP_PORT: ${HTTP_PORT:-80}
USE_LB: ${USE_LB:-1}
USE_IPV6: ${USE_IPV6:-0}
Expand Down
2 changes: 1 addition & 1 deletion config-example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,5 @@ USE_LB=1

# The current running version number of JumpServer, automatically generated after installation and upgrade
#
TIME_ZONE=Asia/Shanghai
TZ=Asia/Shanghai
CURRENT_VERSION=
4 changes: 2 additions & 2 deletions scripts/1_config_jumpserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ function set_others() {
read_from_input lang "$(gettext 'Please enter language')" "zh/en/ja/es/ko/ru/vi" "${lang}"
set_config LANGUAGE_CODE "${lang}"

timezone=$(get_config TIME_ZONE "Asia/Shanghai")
timezone=$(get_config TZ "Asia/Shanghai")
read_from_input timezone "$(gettext 'Please enter timezone')" "" "${timezone}"
set_config TIME_ZONE "${timezone}"
set_config TZ "${timezone}"
}

function main() {
Expand Down
3 changes: 1 addition & 2 deletions scripts/7_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ function upgrade_config() {
check_and_set_config "SERVER_HOSTNAME" "${HOSTNAME}"
check_and_set_config "JUMPSERVER_ENABLE_FONT_SMOOTHING" "true"
check_and_set_config "USE_LB" "1"
check_and_set_config "TIME_ZONE" "${TZ}"
check_and_set_config "VERIFY_EXTERNAL_SSL" "False"
check_and_set_config "VERIFY_EXTERNAL_SSL" "false"
# XPACK
use_xpack=$(get_config_or_env USE_XPACK)
if [[ "${use_xpack}" == "1" ]]; then
Expand Down