Без опису
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

home_mastodon_mastodon_env.j2 8.2KB

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