You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  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'] || '').to_json %>
  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'] || '').to_json %>
  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'] || '').to_json %>
  29. host: <%= ENV['DB_HOST'] || 'localhost' %>
  30. port: <%= ENV['DB_PORT'] || 5432 %>
  31. prepared_statements: <%= ENV['PREPARED_STATEMENTS'] || 'true' %>