1
0

.env.production.sample 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. # 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. # Secrets
  33. # -------
  34. # Make sure to use `rake secret` to generate secrets
  35. # -------
  36. SECRET_KEY_BASE=
  37. OTP_SECRET=
  38. # Web Push
  39. # --------
  40. # Generate with `rake mastodon:webpush:generate_vapid_key`
  41. # --------
  42. VAPID_PRIVATE_KEY=
  43. VAPID_PUBLIC_KEY=
  44. # Sending mail
  45. # ------------
  46. SMTP_SERVER=smtp.mailgun.org
  47. SMTP_PORT=587
  48. SMTP_LOGIN=
  49. SMTP_PASSWORD=
  50. SMTP_FROM_ADDRESS=notificatons@example.com
  51. # File storage (optional)
  52. # -----------------------
  53. S3_ENABLED=true
  54. S3_BUCKET=files.example.com
  55. AWS_ACCESS_KEY_ID=
  56. AWS_SECRET_ACCESS_KEY=
  57. S3_ALIAS_HOST=files.example.com