mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Refactor DBConfig
This commit is contained in:
parent
8b50c8515f
commit
a675c64c2d
2 changed files with 18 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue