ソースを参照

Allow multiple ALLOWED_HOSTS on docker

Change ALLOWED_HOSTS to be a space delimited list.
lf 9 年 前
コミット
b68c64041e
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 = {