Resolved design problem
This commit is contained in:
parent
26fd76670e
commit
5342c0927b
3 changed files with 4 additions and 4 deletions
|
@ -34,8 +34,6 @@ _BASE_DIR = dirname(dirname(abspath(__file__)))
|
||||||
#
|
#
|
||||||
# Example: ALLOWED_HOSTS = ['netbox.example.com', 'netbox.internal.local']
|
# Example: ALLOWED_HOSTS = ['netbox.example.com', 'netbox.internal.local']
|
||||||
ALLOWED_HOSTS = environ.get('ALLOWED_HOSTS', '*').split(' ')
|
ALLOWED_HOSTS = environ.get('ALLOWED_HOSTS', '*').split(' ')
|
||||||
# Example: CSRF_TRUSTED_ORIGINS = http://netbox.example.com/*
|
|
||||||
CSRF_TRUSTED_ORIGINS = environ.get('CSRF_TRUSTED_ORIGINS', '').split(' ')
|
|
||||||
|
|
||||||
# PostgreSQL database configuration. See the Django documentation for a complete list of available parameters:
|
# PostgreSQL database configuration. See the Django documentation for a complete list of available parameters:
|
||||||
# https://docs.djangoproject.com/en/stable/ref/settings/#databases
|
# https://docs.djangoproject.com/en/stable/ref/settings/#databases
|
||||||
|
@ -84,7 +82,7 @@ SECRET_KEY = _read_secret('secret_key', environ.get('SECRET_KEY', ''))
|
||||||
|
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# #http://localhost
|
# #
|
||||||
# Optional settings #
|
# Optional settings #
|
||||||
# #
|
# #
|
||||||
#########################
|
#########################
|
||||||
|
|
|
@ -53,3 +53,6 @@
|
||||||
# from datetime import datetime
|
# from datetime import datetime
|
||||||
# now = datetime.now().strftime("%d/%m/%Y %H:%M:%S")
|
# now = datetime.now().strftime("%d/%m/%Y %H:%M:%S")
|
||||||
# BANNER_TOP = f'<marquee width="200px">This instance started on {now}.</marquee>'
|
# BANNER_TOP = f'<marquee width="200px">This instance started on {now}.</marquee>'
|
||||||
|
|
||||||
|
# Allow CSRF trusted origins, e.g:
|
||||||
|
# CSRF_TRUSTED_ORIGINS = ['http://netbox.example.com']
|
1
env/netbox.env
vendored
1
env/netbox.env
vendored
|
@ -1,5 +1,4 @@
|
||||||
CORS_ORIGIN_ALLOW_ALL=True
|
CORS_ORIGIN_ALLOW_ALL=True
|
||||||
CSRF_TRUSTED_ORIGINS=http://netbox.example.com/*
|
|
||||||
DB_HOST=postgres
|
DB_HOST=postgres
|
||||||
DB_NAME=netbox
|
DB_NAME=netbox
|
||||||
DB_PASSWORD=J5brHrAXFLQSif0K
|
DB_PASSWORD=J5brHrAXFLQSif0K
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue