mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-26 02:30:37 -06:00
Fix database connection (host + port)
This commit is contained in:
parent
6f045b5791
commit
228077efd7
@ -28,13 +28,16 @@ require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to strin
|
||||
const dbname = CONFIG.DATABASE.DBNAME
|
||||
const username = CONFIG.DATABASE.USERNAME
|
||||
const password = CONFIG.DATABASE.PASSWORD
|
||||
const host = CONFIG.DATABASE.HOSTNAME
|
||||
const port = CONFIG.DATABASE.PORT
|
||||
|
||||
const sequelizeTypescript = new SequelizeTypescript({
|
||||
database: dbname,
|
||||
dialect: 'postgres',
|
||||
host,
|
||||
port,
|
||||
username,
|
||||
password,
|
||||
modelPaths: [__dirname + '/models'],
|
||||
benchmark: isTestInstance(),
|
||||
isolationLevel: SequelizeTypescript.Transaction.ISOLATION_LEVELS.SERIALIZABLE,
|
||||
operatorsAliases: false,
|
||||
|
Loading…
Reference in New Issue
Block a user