mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:41:31 +08:00
FIX(cache_critical_dns): use correct DISCOURSE_DB_USERNAME envvar (#16862)
This commit is contained in:
parent
4d1c6396c9
commit
4284ba9c27
|
@ -174,13 +174,13 @@ HEALTH_CHECKS = {
|
||||||
"DISCOURSE_DB_HOST": lambda { |addr|
|
"DISCOURSE_DB_HOST": lambda { |addr|
|
||||||
postgres_healthcheck(
|
postgres_healthcheck(
|
||||||
host: addr,
|
host: addr,
|
||||||
user: ENV["DISCOURSE_DB_USER_NAME"] || DEFAULT_DB_NAME,
|
user: ENV["DISCOURSE_DB_USERNAME"] || DEFAULT_DB_NAME,
|
||||||
dbname: ENV["DISCOURSE_DB_NAME"] || DEFAULT_DB_NAME,
|
dbname: ENV["DISCOURSE_DB_NAME"] || DEFAULT_DB_NAME,
|
||||||
password: ENV["DISCOURSE_DB_PASSWORD"])},
|
password: ENV["DISCOURSE_DB_PASSWORD"])},
|
||||||
"DISCOURSE_DB_REPLICA_HOST": lambda { |addr|
|
"DISCOURSE_DB_REPLICA_HOST": lambda { |addr|
|
||||||
postgres_healthcheck(
|
postgres_healthcheck(
|
||||||
host: addr,
|
host: addr,
|
||||||
user: ENV["DISCOURSE_DB_USER_NAME"] || DEFAULT_DB_NAME,
|
user: ENV["DISCOURSE_DB_USERNAME"] || DEFAULT_DB_NAME,
|
||||||
dbname: ENV["DISCOURSE_DB_NAME"] || DEFAULT_DB_NAME,
|
dbname: ENV["DISCOURSE_DB_NAME"] || DEFAULT_DB_NAME,
|
||||||
password: ENV["DISCOURSE_DB_PASSWORD"])},
|
password: ENV["DISCOURSE_DB_PASSWORD"])},
|
||||||
"DISCOURSE_REDIS_HOST": lambda { |addr|
|
"DISCOURSE_REDIS_HOST": lambda { |addr|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user