forked from uncloud/uncloud
[db] use tcp -> support ssh
This commit is contained in:
parent
1838eaf7dd
commit
3d2f8574d3
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue