.env.production.sample 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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. # Optional ElasticSearch configuration
  13. # ES_ENABLED=true
  14. # ES_HOST=es
  15. # ES_PORT=9200
  16. # Federation
  17. # Note: Changing LOCAL_DOMAIN at a later time will cause unwanted side effects, including breaking all existing federation.
  18. # LOCAL_DOMAIN should *NOT* contain the protocol part of the domain e.g https://example.com.
  19. LOCAL_DOMAIN=example.com
  20. # Changing LOCAL_HTTPS in production is no longer supported. (Mastodon will always serve https:// links)
  21. # Use this only if you need to run mastodon on a different domain than the one used for federation.
  22. # You can read more about this option on https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Serving_a_different_domain.md
  23. # DO *NOT* USE THIS UNLESS YOU KNOW *EXACTLY* WHAT YOU ARE DOING.
  24. # WEB_DOMAIN=mastodon.example.com
  25. # Use this if you want to have several aliases handler@example1.com
  26. # handler@example2.com etc. for the same user. LOCAL_DOMAIN should not
  27. # be added. Comma separated values
  28. # ALTERNATE_DOMAINS=example1.com,example2.com
  29. # Application secrets
  30. # Generate each with the `RAILS_ENV=production bundle exec rake secret` task (`docker-compose run --rm web rake secret` if you use docker compose)
  31. SECRET_KEY_BASE=
  32. OTP_SECRET=
  33. # VAPID keys (used for push notifications
  34. # You can generate the keys using the following command (first is the private key, second is the public one)
  35. # You should only generate this once per instance. If you later decide to change it, all push subscription will
  36. # be invalidated, requiring the users to access the website again to resubscribe.
  37. #
  38. # 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)
  39. #
  40. # For more information visit https://rossta.net/blog/using-the-web-push-api-with-vapid.html
  41. VAPID_PRIVATE_KEY=
  42. VAPID_PUBLIC_KEY=
  43. # Registrations
  44. # Single user mode will disable registrations and redirect frontpage to the first profile
  45. # SINGLE_USER_MODE=true
  46. # Prevent registrations with following e-mail domains
  47. # EMAIL_DOMAIN_BLACKLIST=example1.com|example2.de|etc
  48. # Only allow registrations with the following e-mail domains
  49. # EMAIL_DOMAIN_WHITELIST=example1.com|example2.de|etc
  50. # Optionally change default language
  51. # DEFAULT_LOCALE=de
  52. # E-mail configuration
  53. # Note: Mailgun and SparkPost (https://sparkpo.st/smtp) each have good free tiers
  54. # If you want to use an SMTP server without authentication (e.g local Postfix relay)
  55. # then set SMTP_AUTH_METHOD and SMTP_OPENSSL_VERIFY_MODE to 'none' and
  56. # *comment* SMTP_LOGIN and SMTP_PASSWORD (leaving them blank is not enough).
  57. SMTP_SERVER=smtp.mailgun.org
  58. SMTP_PORT=587
  59. SMTP_LOGIN=
  60. SMTP_PASSWORD=
  61. SMTP_FROM_ADDRESS=notifications@example.com
  62. #SMTP_DOMAIN= # defaults to LOCAL_DOMAIN
  63. #SMTP_DELIVERY_METHOD=smtp # delivery method can also be sendmail
  64. #SMTP_AUTH_METHOD=plain
  65. #SMTP_CA_FILE=/etc/ssl/certs/ca-certificates.crt
  66. #SMTP_OPENSSL_VERIFY_MODE=peer
  67. #SMTP_ENABLE_STARTTLS_AUTO=true
  68. #SMTP_TLS=true
  69. # 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.
  70. # PAPERCLIP_ROOT_PATH=/var/lib/mastodon/public-system
  71. # PAPERCLIP_ROOT_URL=/system
  72. # Optional asset host for multi-server setups
  73. # The asset host must allow cross origin request from WEB_DOMAIN or LOCAL_DOMAIN
  74. # if WEB_DOMAIN is not set. For example, the server may have the
  75. # following header field:
  76. # Access-Control-Allow-Origin: https://example.com/
  77. # CDN_HOST=https://assets.example.com
  78. # S3 (optional)
  79. # The attachment host must allow cross origin request from WEB_DOMAIN or
  80. # LOCAL_DOMAIN if WEB_DOMAIN is not set. For example, the server may have the
  81. # following header field:
  82. # Access-Control-Allow-Origin: https://192.168.1.123:9000/
  83. # S3_ENABLED=true
  84. # S3_BUCKET=
  85. # AWS_ACCESS_KEY_ID=
  86. # AWS_SECRET_ACCESS_KEY=
  87. # S3_REGION=
  88. # S3_PROTOCOL=http
  89. # S3_HOSTNAME=192.168.1.123:9000
  90. # S3 (Minio Config (optional) Please check Minio instance for details)
  91. # The attachment host must allow cross origin request - see the description
  92. # above.
  93. # S3_ENABLED=true
  94. # S3_BUCKET=
  95. # AWS_ACCESS_KEY_ID=
  96. # AWS_SECRET_ACCESS_KEY=
  97. # S3_REGION=
  98. # S3_PROTOCOL=https
  99. # S3_HOSTNAME=
  100. # S3_ENDPOINT=
  101. # S3_SIGNATURE_VERSION=
  102. # Swift (optional)
  103. # The attachment host must allow cross origin request - see the description
  104. # above.
  105. # SWIFT_ENABLED=true
  106. # SWIFT_USERNAME=
  107. # For Keystone V3, the value for SWIFT_TENANT should be the project name
  108. # SWIFT_TENANT=
  109. # SWIFT_PASSWORD=
  110. # Some OpenStack V3 providers require PROJECT_ID (optional)
  111. # SWIFT_PROJECT_ID=
  112. # Keystone V2 and V3 URLs are supported. Use a V3 URL if possible to avoid
  113. # issues with token rate-limiting during high load.
  114. # SWIFT_AUTH_URL=
  115. # SWIFT_CONTAINER=
  116. # SWIFT_OBJECT_URL=
  117. # SWIFT_REGION=
  118. # Defaults to 'default'
  119. # SWIFT_DOMAIN_NAME=
  120. # Defaults to 60 seconds. Set to 0 to disable
  121. # SWIFT_CACHE_TTL=
  122. # Optional alias for S3 (e.g. to serve files on a custom domain, possibly using Cloudfront or Cloudflare)
  123. # S3_ALIAS_HOST=
  124. # Streaming API integration
  125. # STREAMING_API_BASE_URL=
  126. # Advanced settings
  127. # If you need to use pgBouncer, you need to disable prepared statements:
  128. # PREPARED_STATEMENTS=false
  129. # Cluster number setting for streaming API server.
  130. # If you comment out following line, cluster number will be `numOfCpuCores - 1`.
  131. STREAMING_CLUSTER_NUM=1
  132. # Docker mastodon user
  133. # If you use Docker, you may want to assign UID/GID manually.
  134. # UID=1000
  135. # GID=1000
  136. # LDAP authentication (optional)
  137. # LDAP_ENABLED=true
  138. # LDAP_HOST=localhost
  139. # LDAP_PORT=389
  140. # LDAP_METHOD=simple_tls
  141. # LDAP_BASE=
  142. # LDAP_BIND_DN=
  143. # LDAP_PASSWORD=
  144. # LDAP_UID=cn
  145. # LDAP_SEARCH_FILTER="%{uid}=%{email}"
  146. # PAM authentication (optional)
  147. # PAM authentication uses for the email generation the "email" pam variable
  148. # and optional as fallback PAM_DEFAULT_SUFFIX
  149. # The pam environment variable "email" is provided by:
  150. # https://github.com/devkral/pam_email_extractor
  151. # PAM_ENABLED=true
  152. # Fallback email domain for email address generation (LOCAL_DOMAIN by default)
  153. # PAM_EMAIL_DOMAIN=example.com
  154. # Name of the pam service (pam "auth" section is evaluated)
  155. # PAM_DEFAULT_SERVICE=rpam
  156. # Name of the pam service used for checking if an user can register (pam "account" section is evaluated) (nil (disabled) by default)
  157. # PAM_CONTROLLED_SERVICE=rpam
  158. # Global OAuth settings (optional) :
  159. # If you have only one strategy, you may want to enable this
  160. # OAUTH_REDIRECT_AT_SIGN_IN=true
  161. # Optional CAS authentication (cf. omniauth-cas) :
  162. # CAS_ENABLED=true
  163. # CAS_URL=https://sso.myserver.com/
  164. # CAS_HOST=sso.myserver.com/
  165. # CAS_PORT=443
  166. # CAS_SSL=true
  167. # CAS_VALIDATE_URL=
  168. # CAS_CALLBACK_URL=
  169. # CAS_LOGOUT_URL=
  170. # CAS_LOGIN_URL=
  171. # CAS_UID_FIELD='user'
  172. # CAS_CA_PATH=
  173. # CAS_DISABLE_SSL_VERIFICATION=false
  174. # CAS_UID_KEY='user'
  175. # CAS_NAME_KEY='name'
  176. # CAS_EMAIL_KEY='email'
  177. # CAS_NICKNAME_KEY='nickname'
  178. # CAS_FIRST_NAME_KEY='firstname'
  179. # CAS_LAST_NAME_KEY='lastname'
  180. # CAS_LOCATION_KEY='location'
  181. # CAS_IMAGE_KEY='image'
  182. # CAS_PHONE_KEY='phone'
  183. # Optional SAML authentication (cf. omniauth-saml)
  184. # SAML_ENABLED=true
  185. # SAML_ACS_URL=
  186. # SAML_ISSUER=http://localhost:3000/auth/auth/saml/callback
  187. # SAML_IDP_SSO_TARGET_URL=https://idp.testshib.org/idp/profile/SAML2/Redirect/SSO
  188. # SAML_IDP_CERT=
  189. # SAML_IDP_CERT_FINGERPRINT=
  190. # SAML_NAME_IDENTIFIER_FORMAT=
  191. # SAML_CERT=
  192. # SAML_PRIVATE_KEY=
  193. # SAML_SECURITY_WANT_ASSERTION_SIGNED=true
  194. # SAML_SECURITY_WANT_ASSERTION_ENCRYPTED=true
  195. # SAML_SECURITY_ASSUME_EMAIL_IS_VERIFIED=true
  196. # SAML_ATTRIBUTES_STATEMENTS_UID="urn:oid:0.9.2342.19200300.100.1.1"
  197. # SAML_ATTRIBUTES_STATEMENTS_EMAIL="urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
  198. # SAML_ATTRIBUTES_STATEMENTS_FULL_NAME="urn:oid:2.16.840.1.113730.3.1.241"
  199. # SAML_ATTRIBUTES_STATEMENTS_FIRST_NAME="urn:oid:2.5.4.42"
  200. # SAML_ATTRIBUTES_STATEMENTS_LAST_NAME="urn:oid:2.5.4.4"
  201. # SAML_UID_ATTRIBUTE="urn:oid:0.9.2342.19200300.100.1.1"
  202. # SAML_ATTRIBUTES_STATEMENTS_VERIFIED=
  203. # SAML_ATTRIBUTES_STATEMENTS_VERIFIED_EMAIL=
  204. # Use HTTP proxy for outgoing request (optional)
  205. # http_proxy=http://gateway.local:8118
  206. # Access control for hidden service.
  207. # ALLOW_ACCESS_TO_HIDDEN_SERVICE=true