database.yml 759 B

12345678910111213141516171819202122232425
  1. default: &default
  2. adapter: postgresql
  3. pool: <%= ENV["DB_POOL"] || ENV['MAX_THREADS'] || 5 %>
  4. timeout: 5000
  5. encoding: unicode
  6. development:
  7. <<: *default
  8. database: mastodon_development
  9. # Warning: The database defined as "test" will be erased and
  10. # re-generated from your development database when you run "rake".
  11. # Do not set this db to the same as development or production.
  12. test:
  13. <<: *default
  14. database: mastodon_test
  15. production:
  16. <<: *default
  17. database: <%= ENV['DB_NAME'] || 'mastodon_production' %>
  18. username: <%= ENV['DB_USER'] || 'mastodon' %>
  19. password: <%= ENV['DB_PASS'] || '' %>
  20. host: <%= ENV['DB_HOST'] || 'localhost' %>
  21. port: <%= ENV['DB_PORT'] || 5432 %>
  22. prepared_statements: <%= ENV['PREPARED_STATEMENTS'] || 'true' %>