闭社主体 forked from https://github.com/tootsuite/mastodon
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.1 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. variables:
  7. statement_timeout: 60000
  8. development:
  9. <<: *default
  10. database: <%= ENV['DB_NAME'] || 'mastodon_development' %>
  11. username: <%= ENV['DB_USER'] %>
  12. password: <%= ENV['DB_PASS'] %>
  13. host: <%= ENV['DB_HOST'] %>
  14. port: <%= ENV['DB_PORT'] %>
  15. # Warning: The database defined as "test" will be erased and
  16. # re-generated from your development database when you run "rake".
  17. # Do not set this db to the same as development or production.
  18. test:
  19. <<: *default
  20. database: <%= ENV['DB_NAME'] || 'mastodon' %>_test<%= ENV['TEST_ENV_NUMBER'] %>
  21. username: <%= ENV['DB_USER'] %>
  22. password: <%= ENV['DB_PASS'] %>
  23. host: <%= ENV['DB_HOST'] %>
  24. port: <%= ENV['DB_PORT'] %>
  25. production:
  26. <<: *default
  27. database: <%= ENV['DB_NAME'] || 'mastodon_production' %>
  28. username: <%= ENV['DB_USER'] || 'mastodon' %>
  29. password: <%= ENV['DB_PASS'] || '' %>
  30. host: <%= ENV['DB_HOST'] || 'localhost' %>
  31. port: <%= ENV['DB_PORT'] || 5432 %>
  32. prepared_statements: <%= ENV['PREPARED_STATEMENTS'] || 'true' %>