闭社主体 forked from https://github.com/tootsuite/mastodon
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.

90 lines
2.7 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 leave SMTP_LOGIN and SMTP_PASSWORD blank
  34. SMTP_SERVER=smtp.mailgun.org
  35. SMTP_PORT=587
  36. SMTP_LOGIN=
  37. SMTP_PASSWORD=
  38. SMTP_FROM_ADDRESS=notifications@example.com
  39. #SMTP_DOMAIN= # defaults to LOCAL_DOMAIN
  40. #SMTP_DELIVERY_METHOD=smtp # delivery method can also be sendmail
  41. #SMTP_AUTH_METHOD=plain
  42. #SMTP_OPENSSL_VERIFY_MODE=peer
  43. #SMTP_ENABLE_STARTTLS_AUTO=true
  44. # 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.
  45. # PAPERCLIP_ROOT_PATH=/var/lib/mastodon/public-system
  46. # PAPERCLIP_ROOT_URL=/system
  47. # Optional asset host for multi-server setups
  48. # CDN_HOST=assets.example.com
  49. # S3 (optional)
  50. # S3_ENABLED=true
  51. # S3_BUCKET=
  52. # AWS_ACCESS_KEY_ID=
  53. # AWS_SECRET_ACCESS_KEY=
  54. # S3_REGION=
  55. # S3_PROTOCOL=http
  56. # S3_HOSTNAME=192.168.1.123:9000
  57. # S3 (Minio Config (optional) Please check Minio instance for details)
  58. # S3_ENABLED=true
  59. # S3_BUCKET=
  60. # AWS_ACCESS_KEY_ID=
  61. # AWS_SECRET_ACCESS_KEY=
  62. # S3_REGION=
  63. # S3_PROTOCOL=https
  64. # S3_HOSTNAME=
  65. # S3_ENDPOINT=
  66. # Optional alias for S3 if you want to use Cloudfront or Cloudflare in front
  67. # S3_CLOUDFRONT_HOST=
  68. # Streaming API integration
  69. # STREAMING_API_BASE_URL=
  70. # Advanced settings
  71. # If you need to use pgBouncer, you need to disable prepared statements:
  72. # PREPARED_STATEMENTS=false
  73. # Cluster number setting for streaming API server.
  74. # If you comment out following line, cluster number will be `numOfCpuCores - 1`.
  75. STREAMING_CLUSTER_NUM=1