mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-14 20:18:31 +00:00
Refactor DBConfig
This commit is contained in:
@@ -33,11 +33,11 @@ HMAC_KEY = CONFIG.hmac_key || Random::Secure.hex(32)
|
||||
|
||||
PG_URL = URI.new(
|
||||
scheme: "postgres",
|
||||
user: CONFIG.db[:user],
|
||||
password: CONFIG.db[:password],
|
||||
host: CONFIG.db[:host],
|
||||
port: CONFIG.db[:port],
|
||||
path: CONFIG.db[:dbname],
|
||||
user: CONFIG.db.user,
|
||||
password: CONFIG.db.password,
|
||||
host: CONFIG.db.host,
|
||||
port: CONFIG.db.port,
|
||||
path: CONFIG.db.dbname,
|
||||
)
|
||||
|
||||
PG_DB = DB.open PG_URL
|
||||
|
||||
Reference in New Issue
Block a user