Merge pull request #11241 from jumpserver/pr@dev@perf_core_host

perf: 优化 CORE_HOST
pull/11242/head
老广 1 year ago committed by GitHub
commit 4e254493bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -68,8 +68,11 @@ SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
# LOG LEVEL
LOG_LEVEL = CONFIG.LOG_LEVEL
DOMAINS = CONFIG.DOMAINS or 'localhost'
if os.environ.get('SERVER_NAME'):
DOMAINS += ',{}'.format(os.environ.get('SERVER_NAME'))
for name in ['SERVER_NAME', 'CORE_HOST']:
env = os.environ.get(name)
if not env:
continue
DOMAINS += ',{}'.format(env)
if CONFIG.SITE_URL:
DOMAINS += ',{}'.format(CONFIG.SITE_URL)

Loading…
Cancel
Save