闭社主体 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.

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