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.

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