Browse Source

[Update] 修改websocket监听端口

pull/3293/head
ibuler 5 years ago
parent
commit
2c46707c2b
  1. 1
      apps/jumpserver/conf.py
  2. 1
      config_example.yml
  3. 2
      jms

1
apps/jumpserver/conf.py

@ -376,6 +376,7 @@ defaults = {
'RADIUS_SECRET': '',
'HTTP_BIND_HOST': '0.0.0.0',
'HTTP_LISTEN_PORT': 8080,
'WS_LISTEN_PORT': 8082,
'LOGIN_LOG_KEEP_DAYS': 90,
'ASSETS_PERM_CACHE_TIME': 3600*24,
'SECURITY_MFA_VERIFY_TTL': 3600,

1
config_example.yml

@ -44,6 +44,7 @@ DB_NAME: jumpserver
# 运行时绑定端口
HTTP_BIND_HOST: 0.0.0.0
HTTP_LISTEN_PORT: 8080
WS_LISTEN_PORT: 8082
# Use Redis as broker for celery and web socket
# Redis配置

2
jms

@ -47,7 +47,7 @@ LOG_DIR = os.path.join(BASE_DIR, 'logs')
TMP_DIR = os.path.join(BASE_DIR, 'tmp')
HTTP_HOST = CONFIG.HTTP_BIND_HOST or '127.0.0.1'
HTTP_PORT = CONFIG.HTTP_LISTEN_PORT or 8080
WS_PORT = HTTP_PORT + 1
WS_PORT = CONFIG.WS_LISTEN_PORT or 8082
DEBUG = CONFIG.DEBUG or False
LOG_LEVEL = CONFIG.LOG_LEVEL or 'INFO'

Loading…
Cancel
Save