Also use 127.0.0.1 for database and redis

Node 18 can resolve localhost to IPv6 address, where postgresql and/or
redis may listen on IPv4 only
This commit is contained in:
Chocobozzz
2023-11-07 10:40:08 +01:00
parent 2d4274769e
commit 1ba8bbded0
4 changed files with 7 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ trust_proxy:
# Your database name will be database.name OR 'peertube'+database.suffix
database:
hostname: 'localhost'
hostname: '127.0.0.1'
port: 5432
ssl: false
suffix: '_dev'
@@ -83,7 +83,7 @@ database:
# You can also specify a 'socket' path to a unix socket but first need to
# set 'hostname' and 'port' to null
redis:
hostname: 'localhost'
hostname: '127.0.0.1'
port: 6379
auth: null # Used by both standalone and sentinel
db: 0

View File

@@ -17,11 +17,11 @@ rates_limit:
max: 200
database:
hostname: 'localhost'
hostname: '127.0.0.1'
port: 5432
redis:
hostname: 'localhost'
hostname: '127.0.0.1'
smtp:
hostname: null

View File

@@ -68,7 +68,7 @@ trust_proxy:
# Your database name will be database.name OR 'peertube'+database.suffix
database:
hostname: 'localhost'
hostname: '127.0.0.1'
port: 5432
ssl: false
suffix: '_prod'
@@ -81,7 +81,7 @@ database:
# You can also specify a 'socket' path to a unix socket but first need to
# set 'hostname' and 'port' to null
redis:
hostname: 'localhost'
hostname: '127.0.0.1'
port: 6379
auth: null # Used by both standalone and sentinel
db: 0