.env.production.sample 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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_CA_FILE=/etc/ssl/certs/ca-certificates.crt
  44. #SMTP_OPENSSL_VERIFY_MODE=peer
  45. #SMTP_ENABLE_STARTTLS_AUTO=true
  46. # 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.
  47. # PAPERCLIP_ROOT_PATH=/var/lib/mastodon/public-system
  48. # PAPERCLIP_ROOT_URL=/system
  49. # Optional asset host for multi-server setups
  50. # CDN_HOST=assets.example.com
  51. # S3 (optional)
  52. # S3_ENABLED=true
  53. # S3_BUCKET=
  54. # AWS_ACCESS_KEY_ID=
  55. # AWS_SECRET_ACCESS_KEY=
  56. # S3_REGION=
  57. # S3_PROTOCOL=http
  58. # S3_HOSTNAME=192.168.1.123:9000
  59. # S3 (Minio Config (optional) Please check Minio instance for details)
  60. # S3_ENABLED=true
  61. # S3_BUCKET=
  62. # AWS_ACCESS_KEY_ID=
  63. # AWS_SECRET_ACCESS_KEY=
  64. # S3_REGION=
  65. # S3_PROTOCOL=https
  66. # S3_HOSTNAME=
  67. # S3_ENDPOINT=
  68. # S3_SIGNATURE_VERSION=
  69. # Optional alias for S3 if you want to use Cloudfront or Cloudflare in front
  70. # S3_CLOUDFRONT_HOST=
  71. # Streaming API integration
  72. # STREAMING_API_BASE_URL=
  73. # Advanced settings
  74. # If you need to use pgBouncer, you need to disable prepared statements:
  75. # PREPARED_STATEMENTS=false
  76. # Cluster number setting for streaming API server.
  77. # If you comment out following line, cluster number will be `numOfCpuCores - 1`.
  78. STREAMING_CLUSTER_NUM=1