.env.production.sample 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # This is a sample configuration file. You can generate your configuration
  2. # with the `bundle exec rails mastodon:setup` interactive setup wizard, but to customize
  3. # your setup even further, you'll need to edit it manually. This sample does
  4. # not demonstrate all available configuration options. Please look at
  5. # https://docs.joinmastodon.org/admin/config/ for the full documentation.
  6. # Note that this file accepts slightly different syntax depending on whether
  7. # you are using `docker-compose` or not. In particular, if you use
  8. # `docker-compose`, the value of each declared variable will be taken verbatim,
  9. # including surrounding quotes.
  10. # See: https://github.com/mastodon/mastodon/issues/16895
  11. # Federation
  12. # ----------
  13. # This identifies your server and cannot be changed safely later
  14. # ----------
  15. LOCAL_DOMAIN=example.com
  16. # Redis
  17. # -----
  18. REDIS_HOST=localhost
  19. REDIS_PORT=6379
  20. # PostgreSQL
  21. # ----------
  22. DB_HOST=/var/run/postgresql
  23. DB_USER=mastodon
  24. DB_NAME=mastodon_production
  25. DB_PASS=
  26. DB_PORT=5432
  27. # Elasticsearch (optional)
  28. # ------------------------
  29. ES_ENABLED=true
  30. ES_HOST=localhost
  31. ES_PORT=9200
  32. # Authentication for ES (optional)
  33. ES_USER=elastic
  34. ES_PASS=password
  35. # Secrets
  36. # -------
  37. # Make sure to use `bundle exec rails secret` to generate secrets
  38. # -------
  39. SECRET_KEY_BASE=
  40. OTP_SECRET=
  41. # Encryption secrets
  42. # ------------------
  43. # Must be available (and set to same values) for all server processes
  44. # These are private/secret values, do not share outside hosting environment
  45. # Use `bin/rails db:encryption:init` to generate fresh secrets
  46. # Do not change these secrets once in use, as this would cause data loss and other issues
  47. # ------------------
  48. # ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=
  49. # ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=
  50. # ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=
  51. # Web Push
  52. # --------
  53. # Generate with `bundle exec rails mastodon:webpush:generate_vapid_key`
  54. # --------
  55. VAPID_PRIVATE_KEY=
  56. VAPID_PUBLIC_KEY=
  57. # Sending mail
  58. # ------------
  59. SMTP_SERVER=
  60. SMTP_PORT=587
  61. SMTP_LOGIN=
  62. SMTP_PASSWORD=
  63. SMTP_FROM_ADDRESS=notifications@example.com
  64. # File storage (optional)
  65. # -----------------------
  66. S3_ENABLED=true
  67. S3_BUCKET=files.example.com
  68. AWS_ACCESS_KEY_ID=
  69. AWS_SECRET_ACCESS_KEY=
  70. S3_ALIAS_HOST=files.example.com
  71. # IP and session retention
  72. # -----------------------
  73. # Make sure to modify the scheduling of ip_cleanup_scheduler in config/sidekiq.yml
  74. # to be less than daily if you lower IP_RETENTION_PERIOD below two days (172800).
  75. # -----------------------
  76. IP_RETENTION_PERIOD=31556952
  77. SESSION_RETENTION_PERIOD=31556952