1
0

.env.production.sample 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. # ------------------
  47. # ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=
  48. # ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=
  49. # ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=
  50. # Web Push
  51. # --------
  52. # Generate with `bundle exec rails mastodon:webpush:generate_vapid_key`
  53. # --------
  54. VAPID_PRIVATE_KEY=
  55. VAPID_PUBLIC_KEY=
  56. # Sending mail
  57. # ------------
  58. SMTP_SERVER=
  59. SMTP_PORT=587
  60. SMTP_LOGIN=
  61. SMTP_PASSWORD=
  62. SMTP_FROM_ADDRESS=notifications@example.com
  63. # File storage (optional)
  64. # -----------------------
  65. S3_ENABLED=true
  66. S3_BUCKET=files.example.com
  67. AWS_ACCESS_KEY_ID=
  68. AWS_SECRET_ACCESS_KEY=
  69. S3_ALIAS_HOST=files.example.com
  70. # IP and session retention
  71. # -----------------------
  72. # Make sure to modify the scheduling of ip_cleanup_scheduler in config/sidekiq.yml
  73. # to be less than daily if you lower IP_RETENTION_PERIOD below two days (172800).
  74. # -----------------------
  75. IP_RETENTION_PERIOD=31556952
  76. SESSION_RETENTION_PERIOD=31556952