mirror of https://github.com/jumpserver/jumpserver
fix: 修复 DOMAINS 添加 80和443 不生效的问题
parent
43dbb4c226
commit
0cf17310e1
|
@ -79,6 +79,7 @@ if CONFIG.SITE_URL:
|
|||
ALLOWED_DOMAINS = DOMAINS.split(',') if DOMAINS else ['localhost:8080']
|
||||
ALLOWED_DOMAINS = [host.strip() for host in ALLOWED_DOMAINS]
|
||||
ALLOWED_DOMAINS = [host.replace('http://', '').replace('https://', '') for host in ALLOWED_DOMAINS if host]
|
||||
ALLOWED_DOMAINS = [host.replace(':80', '').replace(':443', '') for host in ALLOWED_DOMAINS]
|
||||
ALLOWED_DOMAINS = [host.split('/')[0] for host in ALLOWED_DOMAINS if host]
|
||||
|
||||
DEBUG_HOSTS = ('127.0.0.1', 'localhost', 'core')
|
||||
|
|
Loading…
Reference in New Issue