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.

102 lines
3.3 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. # Application secrets
  21. # Generate each with the `rake secret` task (`docker-compose run --rm web rake secret` if you use docker compose)
  22. PAPERCLIP_SECRET=
  23. SECRET_KEY_BASE=
  24. OTP_SECRET=
  25. # Registrations
  26. # Single user mode will disable registrations and redirect frontpage to the first profile
  27. # SINGLE_USER_MODE=true
  28. # Prevent registrations with following e-mail domains
  29. # EMAIL_DOMAIN_BLACKLIST=example1.com|example2.de|etc
  30. # Only allow registrations with the following e-mail domains
  31. # EMAIL_DOMAIN_WHITELIST=example1.com|example2.de|etc
  32. # Optionally change default language
  33. # DEFAULT_LOCALE=de
  34. # E-mail configuration
  35. # Note: Mailgun and SparkPost (https://sparkpo.st/smtp) each have good free tiers
  36. # If you want to use an SMTP server without authentication (e.g local Postfix relay)
  37. # then set SMTP_AUTH_METHOD and SMTP_OPENSSL_VERIFY_MODE to 'none' and
  38. # *comment* SMTP_LOGIN and SMTP_PASSWORD (leaving them blank is not enough).
  39. SMTP_SERVER=smtp.mailgun.org
  40. SMTP_PORT=587
  41. SMTP_LOGIN=
  42. SMTP_PASSWORD=
  43. SMTP_FROM_ADDRESS=notifications@example.com
  44. #SMTP_DOMAIN= # defaults to LOCAL_DOMAIN
  45. #SMTP_DELIVERY_METHOD=smtp # delivery method can also be sendmail
  46. #SMTP_AUTH_METHOD=plain
  47. #SMTP_CA_FILE=/etc/ssl/certs/ca-certificates.crt
  48. #SMTP_OPENSSL_VERIFY_MODE=peer
  49. #SMTP_ENABLE_STARTTLS_AUTO=true
  50. # 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.
  51. # PAPERCLIP_ROOT_PATH=/var/lib/mastodon/public-system
  52. # PAPERCLIP_ROOT_URL=/system
  53. # Optional asset host for multi-server setups
  54. # CDN_HOST=assets.example.com
  55. # S3 (optional)
  56. # S3_ENABLED=true
  57. # S3_BUCKET=
  58. # AWS_ACCESS_KEY_ID=
  59. # AWS_SECRET_ACCESS_KEY=
  60. # S3_REGION=
  61. # S3_PROTOCOL=http
  62. # S3_HOSTNAME=192.168.1.123:9000
  63. # S3 (Minio Config (optional) Please check Minio instance for details)
  64. # S3_ENABLED=true
  65. # S3_BUCKET=
  66. # AWS_ACCESS_KEY_ID=
  67. # AWS_SECRET_ACCESS_KEY=
  68. # S3_REGION=
  69. # S3_PROTOCOL=https
  70. # S3_HOSTNAME=
  71. # S3_ENDPOINT=
  72. # S3_SIGNATURE_VERSION=
  73. # Optional alias for S3 if you want to use Cloudfront or Cloudflare in front
  74. # S3_CLOUDFRONT_HOST=
  75. # Streaming API integration
  76. # STREAMING_API_BASE_URL=
  77. # Advanced settings
  78. # If you need to use pgBouncer, you need to disable prepared statements:
  79. # PREPARED_STATEMENTS=false
  80. # Cluster number setting for streaming API server.
  81. # If you comment out following line, cluster number will be `numOfCpuCores - 1`.
  82. STREAMING_CLUSTER_NUM=1
  83. # Docker mastodon user
  84. # If you use Docker, you may want to assign UID/GID manually.
  85. # UID=1000
  86. # GID=1000