1
0

.env.production.sample 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. # Authentication for ES (optional)
  33. ES_USER=elastic
  34. ES_PASS=password
  35. # Secrets
  36. # -------
  37. # Make sure to use `rake secret` to generate secrets
  38. # -------
  39. SECRET_KEY_BASE=
  40. OTP_SECRET=
  41. # Web Push
  42. # --------
  43. # Generate with `rake mastodon:webpush:generate_vapid_key`
  44. # --------
  45. VAPID_PRIVATE_KEY=
  46. VAPID_PUBLIC_KEY=
  47. # Sending mail
  48. # ------------
  49. SMTP_SERVER=
  50. SMTP_PORT=587
  51. SMTP_LOGIN=
  52. SMTP_PASSWORD=
  53. SMTP_FROM_ADDRESS=notifications@example.com
  54. # File storage (optional)
  55. # -----------------------
  56. S3_ENABLED=true
  57. S3_BUCKET=files.example.com
  58. AWS_ACCESS_KEY_ID=
  59. AWS_SECRET_ACCESS_KEY=
  60. S3_ALIAS_HOST=files.example.com
  61. # IP and session retention
  62. # -----------------------
  63. # Make sure to modify the scheduling of ip_cleanup_scheduler in config/sidekiq.yml
  64. # to be less than daily if you lower IP_RETENTION_PERIOD below two days (172800).
  65. # -----------------------
  66. IP_RETENTION_PERIOD=31556952
  67. SESSION_RETENTION_PERIOD=31556952