.env.example 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. # SECURITY WARNING: keep the secret key used in production secret!
  2. SECRET_KEY="7(2w1sedok=aznpq)ta1mc4i%4h=xx@hxwx*o57ctsuml0x%fr"
  3. # SECURITY WARNING: don't run with debug turned on in production!
  4. DEBUG=false
  5. USE_HTTPS=true
  6. DOMAIN=your.domain.here
  7. EMAIL=your@email.here
  8. # Instance default language (see options at bookwyrm/settings.py "LANGUAGES"
  9. LANGUAGE_CODE="en-us"
  10. # Used for deciding which editions to prefer
  11. DEFAULT_LANGUAGE="English"
  12. ## Leave unset to allow all hosts
  13. # ALLOWED_HOSTS="localhost,127.0.0.1,[::1]"
  14. MEDIA_ROOT=images/
  15. # Database configuration
  16. PGPORT=5432
  17. POSTGRES_PASSWORD=securedbypassword123
  18. POSTGRES_USER=bookwyrm
  19. POSTGRES_DB=bookwyrm
  20. POSTGRES_HOST=db
  21. # Redis activity stream manager
  22. MAX_STREAM_LENGTH=200
  23. REDIS_ACTIVITY_HOST=redis_activity
  24. REDIS_ACTIVITY_PORT=6379
  25. REDIS_ACTIVITY_PASSWORD=redispassword345
  26. # Optional, use a different redis database (defaults to 0)
  27. # REDIS_ACTIVITY_DB_INDEX=0
  28. # Alternatively specify the full redis url, i.e. if you need to use a unix:// socket
  29. # REDIS_ACTIVITY_URL=
  30. # Redis as celery broker
  31. REDIS_BROKER_HOST=redis_broker
  32. REDIS_BROKER_PORT=6379
  33. REDIS_BROKER_PASSWORD=redispassword123
  34. # Optional, use a different redis database (defaults to 0)
  35. # REDIS_BROKER_DB_INDEX=0
  36. # Alternatively specify the full redis url, i.e. if you need to use a unix:// socket
  37. # REDIS_BROKER_URL=
  38. # Monitoring for celery
  39. FLOWER_PORT=8888
  40. FLOWER_USER=admin
  41. FLOWER_PASSWORD=changeme
  42. # Email config
  43. EMAIL_HOST=smtp.mailgun.org
  44. EMAIL_PORT=587
  45. EMAIL_HOST_USER=mail@your.domain.here
  46. EMAIL_HOST_PASSWORD=emailpassword123
  47. EMAIL_USE_TLS=true
  48. EMAIL_USE_SSL=false
  49. EMAIL_SENDER_NAME=admin
  50. # defaults to DOMAIN
  51. EMAIL_SENDER_DOMAIN=
  52. # Query timeouts
  53. SEARCH_TIMEOUT=5
  54. QUERY_TIMEOUT=5
  55. # Thumbnails Generation
  56. ENABLE_THUMBNAIL_GENERATION=true
  57. # S3 configuration
  58. USE_S3=false
  59. AWS_ACCESS_KEY_ID=
  60. AWS_SECRET_ACCESS_KEY=
  61. # Commented are example values if you use a non-AWS, S3-compatible service
  62. # AWS S3 should work with only AWS_STORAGE_BUCKET_NAME and AWS_S3_REGION_NAME
  63. # non-AWS S3-compatible services will need AWS_STORAGE_BUCKET_NAME,
  64. # along with both AWS_S3_CUSTOM_DOMAIN and AWS_S3_ENDPOINT_URL
  65. # AWS_STORAGE_BUCKET_NAME= # "example-bucket-name"
  66. # AWS_S3_CUSTOM_DOMAIN=None # "example-bucket-name.s3.fr-par.scw.cloud"
  67. # AWS_S3_REGION_NAME=None # "fr-par"
  68. # AWS_S3_ENDPOINT_URL=None # "https://s3.fr-par.scw.cloud"
  69. # Commented are example values if you use Azure Blob Storage
  70. # USE_AZURE=true
  71. # AZURE_ACCOUNT_NAME= # "example-account-name"
  72. # AZURE_ACCOUNT_KEY= # "base64-encoded-access-key"
  73. # AZURE_CONTAINER= # "example-blob-container-name"
  74. # AZURE_CUSTOM_DOMAIN= # "example-account-name.blob.core.windows.net"
  75. # Preview image generation can be computing and storage intensive
  76. ENABLE_PREVIEW_IMAGES=False
  77. # Specify RGB tuple or RGB hex strings,
  78. # or use_dominant_color_light / use_dominant_color_dark
  79. PREVIEW_BG_COLOR=use_dominant_color_light
  80. # Change to #FFF if you use use_dominant_color_dark
  81. PREVIEW_TEXT_COLOR=#363636
  82. PREVIEW_IMG_WIDTH=1200
  83. PREVIEW_IMG_HEIGHT=630
  84. PREVIEW_DEFAULT_COVER_COLOR=#002549
  85. # Below are example keys if you want to enable automatically
  86. # sending telemetry to an OTLP-compatible service. Many of
  87. # the main monitoring apps have OLTP collectors, including
  88. # NewRelic, DataDog, and Honeycomb.io - consult their
  89. # documentation for setup instructions, and what exactly to
  90. # put below!
  91. #
  92. # Service name is an arbitrary tag that is attached to any
  93. # data sent, used to distinguish different sources. Useful
  94. # for sending prod and dev metrics to the same place and
  95. # keeping them separate, for instance!
  96. # API endpoint for your provider
  97. OTEL_EXPORTER_OTLP_ENDPOINT=
  98. # Any headers required, usually authentication info
  99. OTEL_EXPORTER_OTLP_HEADERS=
  100. # Service name to identify your app
  101. OTEL_SERVICE_NAME=
  102. # Set HTTP_X_FORWARDED_PROTO ONLY to true if you know what you are doing.
  103. # Only use it if your proxy is "swallowing" if the original request was made
  104. # via https. Please refer to the Django-Documentation and assess the risks
  105. # for your instance:
  106. # https://docs.djangoproject.com/en/3.2/ref/settings/#secure-proxy-ssl-header
  107. HTTP_X_FORWARDED_PROTO=false
  108. # TOTP settings
  109. # TWO_FACTOR_LOGIN_VALIDITY_WINDOW sets the number of codes either side
  110. # which will be accepted.
  111. TWO_FACTOR_LOGIN_VALIDITY_WINDOW=2
  112. TWO_FACTOR_LOGIN_MAX_SECONDS=60
  113. # Additional hosts to allow in the Content-Security-Policy, "self" (should be DOMAIN)
  114. # and AWS_S3_CUSTOM_DOMAIN (if used) are added by default.
  115. # Value should be a comma-separated list of host names.
  116. CSP_ADDITIONAL_HOSTS=