.env.production.sample 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. # Service dependencies
  2. # You may set REDIS_URL instead for more advanced options
  3. # You may also set REDIS_NAMESPACE to share Redis between multiple Mastodon servers
  4. REDIS_HOST=redis
  5. REDIS_PORT=6379
  6. # You may set DATABASE_URL instead for more advanced options
  7. DB_HOST=db
  8. DB_USER=postgres
  9. DB_NAME=postgres
  10. DB_PASS=
  11. DB_PORT=5432
  12. # Federation
  13. # Note: Changing LOCAL_DOMAIN or LOCAL_HTTPS at a later time will cause unwanted side effects.
  14. # LOCAL_DOMAIN should *NOT* contain the protocol part of the domain e.g https://example.com.
  15. LOCAL_DOMAIN=example.com
  16. LOCAL_HTTPS=true
  17. # Use this only if you need to run mastodon on a different domain than the one used for federation.
  18. # You can read more about this option on https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Serving_a_different_domain.md
  19. # DO *NOT* USE THIS UNLESS YOU KNOW *EXACTLY* WHAT YOU ARE DOING.
  20. # WEB_DOMAIN=mastodon.example.com
  21. # Use this if you want to have several aliases handler@example1.com
  22. # handler@example2.com etc. for the same user. LOCAL_DOMAIN should not
  23. # be added. Comma separated values
  24. # ALTERNATE_DOMAINS=example1.com,example2.com
  25. # Application secrets
  26. # Generate each with the `RAILS_ENV=production bundle exec rake secret` task (`docker-compose run --rm web rake secret` if you use docker compose)
  27. PAPERCLIP_SECRET=
  28. SECRET_KEY_BASE=
  29. OTP_SECRET=
  30. # VAPID keys (used for push notifications
  31. # You can generate the keys using the following command (first is the private key, second is the public one)
  32. # You should only generate this once per instance. If you later decide to change it, all push subscription will
  33. # be invalidated, requiring the users to access the website again to resubscribe.
  34. #
  35. # Generate with `RAILS_ENV=production bundle exec rake mastodon:webpush:generate_vapid_key` task (`docker-compose run --rm web rake mastodon:webpush:generate_vapid_key` if you use docker compose)
  36. #
  37. # For more information visit https://rossta.net/blog/using-the-web-push-api-with-vapid.html
  38. VAPID_PRIVATE_KEY=
  39. VAPID_PUBLIC_KEY=
  40. # Registrations
  41. # Single user mode will disable registrations and redirect frontpage to the first profile
  42. # SINGLE_USER_MODE=true
  43. # Prevent registrations with following e-mail domains
  44. # EMAIL_DOMAIN_BLACKLIST=example1.com|example2.de|etc
  45. # Only allow registrations with the following e-mail domains
  46. # EMAIL_DOMAIN_WHITELIST=example1.com|example2.de|etc
  47. # Optionally change default language
  48. # DEFAULT_LOCALE=de
  49. # E-mail configuration
  50. # Note: Mailgun and SparkPost (https://sparkpo.st/smtp) each have good free tiers
  51. # If you want to use an SMTP server without authentication (e.g local Postfix relay)
  52. # then set SMTP_AUTH_METHOD and SMTP_OPENSSL_VERIFY_MODE to 'none' and
  53. # *comment* SMTP_LOGIN and SMTP_PASSWORD (leaving them blank is not enough).
  54. SMTP_SERVER=smtp.mailgun.org
  55. SMTP_PORT=587
  56. SMTP_LOGIN=
  57. SMTP_PASSWORD=
  58. SMTP_FROM_ADDRESS=notifications@example.com
  59. #SMTP_DOMAIN= # defaults to LOCAL_DOMAIN
  60. #SMTP_DELIVERY_METHOD=smtp # delivery method can also be sendmail
  61. #SMTP_AUTH_METHOD=plain
  62. #SMTP_CA_FILE=/etc/ssl/certs/ca-certificates.crt
  63. #SMTP_OPENSSL_VERIFY_MODE=peer
  64. #SMTP_ENABLE_STARTTLS_AUTO=true
  65. #SMTP_TLS=true
  66. # Optional user upload path and URL (images, avatars). Default is :rails_root/public/system. If you set this variable, you are responsible for making your HTTP server (eg. nginx) serve these files.
  67. # PAPERCLIP_ROOT_PATH=/var/lib/mastodon/public-system
  68. # PAPERCLIP_ROOT_URL=/system
  69. # Optional asset host for multi-server setups
  70. # CDN_HOST=https://assets.example.com
  71. # S3 (optional)
  72. # S3_ENABLED=true
  73. # S3_BUCKET=
  74. # AWS_ACCESS_KEY_ID=
  75. # AWS_SECRET_ACCESS_KEY=
  76. # S3_REGION=
  77. # S3_PROTOCOL=http
  78. # S3_HOSTNAME=192.168.1.123:9000
  79. # S3 (Minio Config (optional) Please check Minio instance for details)
  80. # S3_ENABLED=true
  81. # S3_BUCKET=
  82. # AWS_ACCESS_KEY_ID=
  83. # AWS_SECRET_ACCESS_KEY=
  84. # S3_REGION=
  85. # S3_PROTOCOL=https
  86. # S3_HOSTNAME=
  87. # S3_ENDPOINT=
  88. # S3_SIGNATURE_VERSION=
  89. # Swift (optional)
  90. # SWIFT_ENABLED=true
  91. # SWIFT_USERNAME=
  92. # For Keystone V3, the value for SWIFT_TENANT should be the project name
  93. # SWIFT_TENANT=
  94. # SWIFT_PASSWORD=
  95. # Keystone V2 and V3 URLs are supported. Use a V3 URL if possible to avoid
  96. # issues with token rate-limiting during high load.
  97. # SWIFT_AUTH_URL=
  98. # SWIFT_CONTAINER=
  99. # SWIFT_OBJECT_URL=
  100. # SWIFT_REGION=
  101. # Defaults to 'default'
  102. # SWIFT_DOMAIN_NAME=
  103. # Defaults to 60 seconds. Set to 0 to disable
  104. # SWIFT_CACHE_TTL=
  105. # Optional alias for S3 if you want to use Cloudfront or Cloudflare in front
  106. # S3_CLOUDFRONT_HOST=
  107. # Streaming API integration
  108. # STREAMING_API_BASE_URL=
  109. # Advanced settings
  110. # If you need to use pgBouncer, you need to disable prepared statements:
  111. # PREPARED_STATEMENTS=false
  112. # Cluster number setting for streaming API server.
  113. # If you comment out following line, cluster number will be `numOfCpuCores - 1`.
  114. STREAMING_CLUSTER_NUM=1
  115. # Docker mastodon user
  116. # If you use Docker, you may want to assign UID/GID manually.
  117. # UID=1000
  118. # GID=1000