database.yml 1.1 KB

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