.env.production.sample 2.3 KB

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