Skip to content

Commit

Permalink
DB Replica database_tasks as ENV (mastodon#32908)
Browse files Browse the repository at this point in the history
  • Loading branch information
shleeable authored Nov 19, 2024
1 parent 4259828 commit 06fcee0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ production:
prepared_statements: <%= ENV['PREPARED_STATEMENTS'] || 'true' %>
replica:
<<: *default
database: <%= ENV['REPLICA_DB_NAME'] ||ENV['DB_NAME'] || 'mastodon_production' %>
username: <%= ENV['REPLICA_DB_USER'] ||ENV['DB_USER'] || 'mastodon' %>
database: <%= ENV['REPLICA_DB_NAME'] || ENV['DB_NAME'] || 'mastodon_production' %>
username: <%= ENV['REPLICA_DB_USER'] || ENV['DB_USER'] || 'mastodon' %>
password: <%= (ENV['REPLICA_DB_PASS'] || ENV['DB_PASS'] || '').to_json %>
host: <%= ENV['REPLICA_DB_HOST'] ||ENV['DB_HOST'] || 'localhost' %>
port: <%= ENV['REPLICA_DB_PORT'] ||ENV['DB_PORT'] || 5432 %>
prepared_statements: <%= ENV['PREPARED_STATEMENTS'] || 'true' %>
host: <%= ENV['REPLICA_DB_HOST'] || ENV['DB_HOST'] || 'localhost' %>
port: <%= ENV['REPLICA_DB_PORT'] || ENV['DB_PORT'] || 5432 %>
prepared_statements: <%= ENV['REPLICA_PREPARED_STATEMENTS'] || ENV['PREPARED_STATEMENTS'] || 'true' %>
replica: true
database_tasks: <%= ENV['REPLICA_DB_TASKS'] || 'true' %>

0 comments on commit 06fcee0

Please sign in to comment.