.env.production.sample 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # This is a sample configuration file. You can generate your configuration
  2. # with the `rake 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. # Federation
  7. # ----------
  8. # This identifies your server and cannot be changed safely later
  9. # ----------
  10. LOCAL_DOMAIN=example.com
  11. # Redis
  12. # -----
  13. REDIS_HOST=localhost
  14. REDIS_PORT=6379
  15. # PostgreSQL
  16. # ----------
  17. DB_HOST=/var/run/postgresql
  18. DB_USER=mastodon
  19. DB_NAME=mastodon_production
  20. DB_PASS=
  21. DB_PORT=5432
  22. # ElasticSearch (optional)
  23. # ------------------------
  24. ES_ENABLED=true
  25. ES_HOST=localhost
  26. ES_PORT=9200
  27. # Secrets
  28. # -------
  29. # Make sure to use `rake secret` to generate secrets
  30. # -------
  31. SECRET_KEY_BASE=
  32. OTP_SECRET=
  33. # Web Push
  34. # --------
  35. # Generate with `rake mastodon:webpush:generate_vapid_key`
  36. # --------
  37. VAPID_PRIVATE_KEY=
  38. VAPID_PUBLIC_KEY=
  39. # Sending mail
  40. # ------------
  41. SMTP_SERVER=smtp.mailgun.org
  42. SMTP_PORT=587
  43. SMTP_LOGIN=
  44. SMTP_PASSWORD=
  45. SMTP_FROM_ADDRESS=notificatons@example.com
  46. # File storage (optional)
  47. # -----------------------
  48. S3_ENABLED=true
  49. S3_BUCKET=files.example.com
  50. AWS_ACCESS_KEY_ID=
  51. AWS_SECRET_ACCESS_KEY=
  52. S3_ALIAS_HOST=files.example.com