[db] use tcp -> support ssh

This commit is contained in:
Nico Schottelius 2020-04-08 13:09:17 +02:00
parent 1838eaf7dd
commit 3d2f8574d3

View file

@ -27,6 +27,7 @@ except ModuleNotFoundError:
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.postgresql', 'ENGINE': 'django.db.backends.postgresql',
'HOST': '::1', # connecting via tcp, v6, to allow ssh forwarding to work
'NAME': uncloud.secrets.POSTGRESQL_DB_NAME, 'NAME': uncloud.secrets.POSTGRESQL_DB_NAME,
} }
} }