mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 02:06:29 -05:00
9c2e47dcc4
This adds documentation for the configuration of HedgeDoc. Signed-off-by: Philip Molares <philip.molares@udo.edu>
930 B
930 B
S3-compatible
You can use Amazon S3 or any other S3-compatible storage (like MinIO or Ceph Object Gateway) to handle your image uploads in HedgeDoc.
Your S3 bucket must be configured to be writeable.
You just add the following lines to your configuration:
(with the appropriate substitution for <ACCESS_KEY>
, <SECRET_KEY>
, <BUCKET>
, and <ENDPOINT>
of course)
HD_MEDIA_BACKEND="s3"
HD_MEDIA_BACKEND_S3_ACCESS_KEY="<ACCESS_KEY>"
HD_MEDIA_BACKEND_S3_SECRET_KEY="<SECRET_KEY>"
HD_MEDIA_BACKEND_S3_BUCKET="<BUCKET>"
HD_MEDIA_BACKEND_S3_ENDPOINT="<ENDPOINT>"
If you use Amazon S3, <ENDPOINT>
should contain your Amazon Region.
For example: If your Amazon Region is us-east-2
, your endpoint <ENDPOINT>
should be s3.us-east-2.amazonaws.com
.