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.

107 lines
3.6 KiB

  1. # Service dependencies
  2. # You may set REDIS_URL instead for more advanced options
  3. REDIS_HOST=redis
  4. REDIS_PORT=6379
  5. # You may set DATABASE_URL instead for more advanced options
  6. DB_HOST=db
  7. DB_USER=postgres
  8. DB_NAME=postgres
  9. DB_PASS=
  10. DB_PORT=5432
  11. # Federation
  12. # Note: Changing LOCAL_DOMAIN or LOCAL_HTTPS at a later time will cause unwanted side effects.
  13. # LOCAL_DOMAIN should *NOT* contain the protocol part of the domain e.g https://example.com.
  14. LOCAL_DOMAIN=example.com
  15. LOCAL_HTTPS=true
  16. # Use this only if you need to run mastodon on a different domain than the one used for federation.
  17. # You can read more about this option on https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Serving_a_different_domain.md
  18. # DO *NOT* USE THIS UNLESS YOU KNOW *EXACTLY* WHAT YOU ARE DOING.
  19. # WEB_DOMAIN=mastodon.example.com
  20. # Use this if you want to have several aliases handler@example1.com
  21. # handler@example2.com etc. for the same user. LOCAL_DOMAIN should not
  22. # be added. Comma separated values
  23. # ALTERNATE_DOMAINS=example1.com,example2.com
  24. # Application secrets
  25. # Generate each with the `rake secret` task (`docker-compose run --rm web rake secret` if you use docker compose)
  26. PAPERCLIP_SECRET=
  27. SECRET_KEY_BASE=
  28. OTP_SECRET=
  29. # Registrations
  30. # Single user mode will disable registrations and redirect frontpage to the first profile
  31. # SINGLE_USER_MODE=true
  32. # Prevent registrations with following e-mail domains
  33. # EMAIL_DOMAIN_BLACKLIST=example1.com|example2.de|etc
  34. # Only allow registrations with the following e-mail domains
  35. # EMAIL_DOMAIN_WHITELIST=example1.com|example2.de|etc
  36. # Optionally change default language
  37. # DEFAULT_LOCALE=de
  38. # E-mail configuration
  39. # Note: Mailgun and SparkPost (https://sparkpo.st/smtp) each have good free tiers
  40. # If you want to use an SMTP server without authentication (e.g local Postfix relay)
  41. # then set SMTP_AUTH_METHOD and SMTP_OPENSSL_VERIFY_MODE to 'none' and
  42. # *comment* SMTP_LOGIN and SMTP_PASSWORD (leaving them blank is not enough).
  43. SMTP_SERVER=smtp.mailgun.org
  44. SMTP_PORT=587
  45. SMTP_LOGIN=
  46. SMTP_PASSWORD=
  47. SMTP_FROM_ADDRESS=notifications@example.com
  48. #SMTP_DOMAIN= # defaults to LOCAL_DOMAIN
  49. #SMTP_DELIVERY_METHOD=smtp # delivery method can also be sendmail
  50. #SMTP_AUTH_METHOD=plain
  51. #SMTP_CA_FILE=/etc/ssl/certs/ca-certificates.crt
  52. #SMTP_OPENSSL_VERIFY_MODE=peer
  53. #SMTP_ENABLE_STARTTLS_AUTO=true
  54. # 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.
  55. # PAPERCLIP_ROOT_PATH=/var/lib/mastodon/public-system
  56. # PAPERCLIP_ROOT_URL=/system
  57. # Optional asset host for multi-server setups
  58. # CDN_HOST=assets.example.com
  59. # S3 (optional)
  60. # S3_ENABLED=true
  61. # S3_BUCKET=
  62. # AWS_ACCESS_KEY_ID=
  63. # AWS_SECRET_ACCESS_KEY=
  64. # S3_REGION=
  65. # S3_PROTOCOL=http
  66. # S3_HOSTNAME=192.168.1.123:9000
  67. # S3 (Minio Config (optional) Please check Minio instance for details)
  68. # S3_ENABLED=true
  69. # S3_BUCKET=
  70. # AWS_ACCESS_KEY_ID=
  71. # AWS_SECRET_ACCESS_KEY=
  72. # S3_REGION=
  73. # S3_PROTOCOL=https
  74. # S3_HOSTNAME=
  75. # S3_ENDPOINT=
  76. # S3_SIGNATURE_VERSION=
  77. # Optional alias for S3 if you want to use Cloudfront or Cloudflare in front
  78. # S3_CLOUDFRONT_HOST=
  79. # Streaming API integration
  80. # STREAMING_API_BASE_URL=
  81. # Advanced settings
  82. # If you need to use pgBouncer, you need to disable prepared statements:
  83. # PREPARED_STATEMENTS=false
  84. # Cluster number setting for streaming API server.
  85. # If you comment out following line, cluster number will be `numOfCpuCores - 1`.
  86. STREAMING_CLUSTER_NUM=1
  87. # Docker mastodon user
  88. # If you use Docker, you may want to assign UID/GID manually.
  89. # UID=1000
  90. # GID=1000