소스 검색

Merge pull request #592 from lf-/patch-2

Allow multiple ALLOWED_HOSTS on docker
Jeremy Stretch 9 년 전
부모
커밋
8227a9ff9c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      netbox/netbox/configuration.docker.py

+ 1 - 1
netbox/netbox/configuration.docker.py

@@ -9,7 +9,7 @@ import os
 # access to the server via any other hostnames. The first FQDN in the list will be treated as the preferred name.
 # access to the server via any other hostnames. The first FQDN in the list will be treated as the preferred name.
 #
 #
 # Example: ALLOWED_HOSTS = ['netbox.example.com', 'netbox.internal.local']
 # Example: ALLOWED_HOSTS = ['netbox.example.com', 'netbox.internal.local']
-ALLOWED_HOSTS = [os.environ.get('ALLOWED_HOSTS', '')]
+ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '').split(' ')
 
 
 # PostgreSQL database configuration.
 # PostgreSQL database configuration.
 DATABASE = {
 DATABASE = {