bookwyrm.env.j2 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # SECURITY WARNING: keep the secret key used in production secret!
  2. SECRET_KEY="{{bookwyrm_secret_key}}"
  3. # SECURITY WARNING: don't run with debug turned on in production!
  4. DEBUG=false
  5. USE_HTTPS=true
  6. DOMAIN=reading.unbl.ink
  7. EMAIL=admin@unbl.ink
  8. # Instance defualt 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={{bookwyrm_db_pass}}
  18. POSTGRES_USER=bookwyrm
  19. POSTGRES_DB=bookwyrm
  20. POSTGRES_HOST=db.service
  21. # Redis activity stream manager
  22. MAX_STREAM_LENGTH=200
  23. REDIS_ACTIVITY_HOST=cache.service
  24. REDIS_ACTIVITY_PORT=6379
  25. REDIS_ACTIVITY_PASSWORD={{redis_password}}
  26. # Optional, use a different redis database (defaults to 0)
  27. REDIS_ACTIVITY_DB_INDEX=10
  28. # Redis as celery broker
  29. REDIS_BROKER_HOST=cache.service
  30. REDIS_BROKER_PORT=6379
  31. REDIS_BROKER_PASSWORD={{redis_password}}
  32. # Optional, use a different redis database (defaults to 0)
  33. REDIS_BROKER_DB_INDEX=10
  34. # Monitoring for celery
  35. FLOWER_PORT=8888
  36. FLOWER_USER=admin
  37. FLOWER_PASSWORD=changeme
  38. # Email config
  39. EMAIL_HOST=smtp.mailgun.org
  40. EMAIL_PORT=587
  41. EMAIL_HOST_USER=mail@your.domain.here
  42. EMAIL_HOST_PASSWORD=emailpassword123
  43. EMAIL_USE_TLS=true
  44. EMAIL_USE_SSL=false
  45. EMAIL_SENDER_NAME=admin
  46. # defaults to DOMAIN
  47. EMAIL_SENDER_DOMAIN=
  48. # Query timeouts
  49. SEARCH_TIMEOUT=15
  50. QUERY_TIMEOUT=5
  51. # Thumbnails Generation
  52. ENABLE_THUMBNAIL_GENERATION=true
  53. # S3 configuration
  54. USE_S3=true
  55. AWS_ACCESS_KEY_ID=BOOKWYRM
  56. AWS_SECRET_ACCESS_KEY={{bookwyrm_s3_secret_key}}
  57. # Commented are example values if you use a non-AWS, S3-compatible service
  58. # AWS S3 should work with only AWS_STORAGE_BUCKET_NAME and AWS_S3_REGION_NAME
  59. # non-AWS S3-compatible services will need AWS_STORAGE_BUCKET_NAME,
  60. # along with both AWS_S3_CUSTOM_DOMAIN and AWS_S3_ENDPOINT_URL
  61. AWS_STORAGE_BUCKET_NAME=bookwyrm
  62. AWS_S3_CUSTOM_DOMAIN=s3.unbl.ink/bookwyrm
  63. # AWS_S3_REGION_NAME=None # "fr-par"
  64. AWS_S3_ENDPOINT_URL=https://s3.unbl.ink
  65. # Preview image generation can be computing and storage intensive
  66. ENABLE_PREVIEW_IMAGES=True
  67. # Specify RGB tuple or RGB hex strings,
  68. # or use_dominant_color_light / use_dominant_color_dark
  69. PREVIEW_BG_COLOR=use_dominant_color_light
  70. # Change to #FFF if you use use_dominant_color_dark
  71. PREVIEW_TEXT_COLOR=#363636
  72. PREVIEW_IMG_WIDTH=1200
  73. PREVIEW_IMG_HEIGHT=630
  74. PREVIEW_DEFAULT_COVER_COLOR=#002549
  75. # Below are example keys if you want to enable automatically
  76. # sending telemetry to an OTLP-compatible service. Many of
  77. # the main monitoring apps have OLTP collectors, including
  78. # NewRelic, DataDog, and Honeycomb.io - consult their
  79. # documentation for setup instructions, and what exactly to
  80. # put below!
  81. #
  82. # Service name is an arbitrary tag that is attached to any
  83. # data sent, used to distinguish different sources. Useful
  84. # for sending prod and dev metrics to the same place and
  85. # keeping them separate, for instance!
  86. # API endpoint for your provider
  87. OTEL_EXPORTER_OTLP_ENDPOINT=
  88. # Any headers required, usually authentication info
  89. OTEL_EXPORTER_OTLP_HEADERS=
  90. # Service name to identify your app
  91. OTEL_SERVICE_NAME=