diff --git a/src/network_inventory/settings/docker.py b/src/network_inventory/settings/docker.py deleted file mode 100644 index cf7da18..0000000 --- a/src/network_inventory/settings/docker.py +++ /dev/null @@ -1,30 +0,0 @@ -from socket import gethostname -from socket import gethostbyname_ex - -from .base import * - - -ALLOWED_HOSTS = [ - gethostname(), -] + list(set(gethostbyname_ex(gethostname())[2])) - -CSRF_TRUSTED_ORIGINS = [ - "http://localhost:8080", -] - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") - -DEBUG = os.environ.get("DJANGO_DEBUG") -CRISPY_FAIL_SILENTLY = not DEBUG - -DATABASES = { - "default": { - "ENGINE": "django.db.backends.postgresql", - "NAME": "postgres", - "USER": "postgres", - "HOST": "db", - "PORT": 5432, - "PASSWORD": "password", - } -}