Skip to content
Snippets Groups Projects
Commit 1c8e6c01 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Allow configuring db host in production

Implements #94
parent 13ee619b
No related branches found
No related tags found
2 merge requests!55Add feed of recent changes to dashboard,!54Allow configuring db host in production
Pipeline #6675 passed
......@@ -25,7 +25,7 @@ CSRF_COOKIE_SECURE = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'HOST': 'localhost',
'HOST': getattr(secrets, "DB_HOST", "localhost"),
'NAME': secrets.DB_NAME,
'USER': secrets.DB_USER,
'PASSWORD': secrets.DB_PASSWORD,
......
......@@ -6,4 +6,7 @@ DB_NAME = ''
DB_USER = ''
DB_PASSWORD = ''
\ No newline at end of file
DB_PASSWORD = ''
# Optional, if not set, localhost is assumed
# DB_HOST = ''
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment