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.

92 lines
2.8 KiB

  1. # Service dependencies
  2. REDIS_HOST=redis
  3. REDIS_PORT=6379
  4. # REDIS_DB=0
  5. DB_HOST=db
  6. DB_USER=postgres
  7. DB_NAME=postgres
  8. DB_PASS=
  9. DB_PORT=5432
  10. # Federation
  11. LOCAL_DOMAIN=example.com
  12. LOCAL_HTTPS=true
  13. # Use this only if you need to run mastodon on a different domain than the one used for federation.
  14. # Do not use this unless you know exactly what you are doing.
  15. # WEB_DOMAIN=mastodon.example.com
  16. # Application secrets
  17. # Generate each with the `rake secret` task (`docker-compose run --rm web rake secret` if you use docker compose)
  18. PAPERCLIP_SECRET=
  19. SECRET_KEY_BASE=
  20. OTP_SECRET=
  21. # Registrations
  22. # Single user mode will disable registrations and redirect frontpage to the first profile
  23. # SINGLE_USER_MODE=true
  24. # Prevent registrations with following e-mail domains
  25. # EMAIL_DOMAIN_BLACKLIST=example1.com|example2.de|etc
  26. # Only allow registrations with the following e-mail domains
  27. # EMAIL_DOMAIN_WHITELIST=example1.com|example2.de|etc
  28. # Optionally change default language
  29. # DEFAULT_LOCALE=de
  30. # E-mail configuration
  31. # Note: Mailgun and SparkPost (https://sparkpo.st/smtp) each have good free tiers
  32. # If you want to use an SMTP server without authentication (e.g local Postfix relay)
  33. # then set SMTP_AUTH_METHOD to 'none' and *comment* SMTP_LOGIN and SMTP_PASSWORD.
  34. # Leaving them blank is not enough for authentication method 'none'.
  35. SMTP_SERVER=smtp.mailgun.org
  36. SMTP_PORT=587
  37. SMTP_LOGIN=
  38. SMTP_PASSWORD=
  39. SMTP_FROM_ADDRESS=notifications@example.com
  40. #SMTP_DOMAIN= # defaults to LOCAL_DOMAIN
  41. #SMTP_DELIVERY_METHOD=smtp # delivery method can also be sendmail
  42. #SMTP_AUTH_METHOD=plain
  43. #SMTP_OPENSSL_VERIFY_MODE=peer
  44. #SMTP_ENABLE_STARTTLS_AUTO=true
  45. # 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.
  46. # PAPERCLIP_ROOT_PATH=/var/lib/mastodon/public-system
  47. # PAPERCLIP_ROOT_URL=/system
  48. # Optional asset host for multi-server setups
  49. # CDN_HOST=assets.example.com
  50. # S3 (optional)
  51. # S3_ENABLED=true
  52. # S3_BUCKET=
  53. # AWS_ACCESS_KEY_ID=
  54. # AWS_SECRET_ACCESS_KEY=
  55. # S3_REGION=
  56. # S3_PROTOCOL=http
  57. # S3_HOSTNAME=192.168.1.123:9000
  58. # S3 (Minio Config (optional) Please check Minio instance for details)
  59. # S3_ENABLED=true
  60. # S3_BUCKET=
  61. # AWS_ACCESS_KEY_ID=
  62. # AWS_SECRET_ACCESS_KEY=
  63. # S3_REGION=
  64. # S3_PROTOCOL=https
  65. # S3_HOSTNAME=
  66. # S3_ENDPOINT=
  67. # S3_SIGNATURE_VERSION=
  68. # Optional alias for S3 if you want to use Cloudfront or Cloudflare in front
  69. # S3_CLOUDFRONT_HOST=
  70. # Streaming API integration
  71. # STREAMING_API_BASE_URL=
  72. # Advanced settings
  73. # If you need to use pgBouncer, you need to disable prepared statements:
  74. # PREPARED_STATEMENTS=false
  75. # Cluster number setting for streaming API server.
  76. # If you comment out following line, cluster number will be `numOfCpuCores - 1`.
  77. STREAMING_CLUSTER_NUM=1