database.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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. username: <%= ENV['DB_USER'] %>
  10. password: <%= ENV['DB_PASS'] %>
  11. host: <%= ENV['DB_HOST'] %>
  12. port: <%= ENV['DB_PORT'] %>
  13. # Warning: The database defined as "test" will be erased and
  14. # re-generated from your development database when you run "rake".
  15. # Do not set this db to the same as development or production.
  16. test:
  17. <<: *default
  18. database: mastodon_test<%= ENV['TEST_ENV_NUMBER'] %>
  19. username: <%= ENV['DB_USER'] %>
  20. password: <%= ENV['DB_PASS'] %>
  21. host: <%= ENV['DB_HOST'] %>
  22. port: <%= ENV['DB_PORT'] %>
  23. production:
  24. <<: *default
  25. database: <%= ENV['DB_NAME'] || 'mastodon_production' %>
  26. username: <%= ENV['DB_USER'] || 'mastodon' %>
  27. password: <%= ENV['DB_PASS'] || '' %>
  28. host: <%= ENV['DB_HOST'] || 'localhost' %>
  29. port: <%= ENV['DB_PORT'] || 5432 %>
  30. prepared_statements: <%= ENV['PREPARED_STATEMENTS'] || 'true' %>