An ActivityPub / OStatus - compatible social network platform, written in Ruby on Rails, react and NodeJS.

.env.production.sample 8.3KB

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