Horrific.Dev's fork of the Mastodon project, hosted @ is.a.horrific.dev. https://joinmastodon.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

268 lines
9.6 KiB

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