mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-30 06:45:47 -04:00
refactor(media): store filenames, use pre-signed s3/azure URLs, UUIDs
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
4132833b5d
commit
157a0fe278
47 changed files with 869 additions and 389 deletions
|
@ -7,7 +7,7 @@ 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)
|
||||
`<BUCKET>`, `<REGION>`, and `<ENDPOINT>` of course)
|
||||
|
||||
```dotenv
|
||||
HD_MEDIA_BACKEND="s3"
|
||||
|
@ -15,11 +15,16 @@ 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>"
|
||||
HD_MEDIA_BACKEND_S3_REGION="<REGION>"
|
||||
HD_MEDIA_BACKEND_S3_PATH_STYLE="<true|false>"
|
||||
```
|
||||
|
||||
`<ENDPOINT>` should be an URL and contain the protocol, the domain and if necessary the port.
|
||||
For example: `https://s3.example.org` or `http://s3.example.org:9000`
|
||||
|
||||
`<PATH_STYLE>` should be set to `true` if you are using a S3-compatible storage like MinIO that
|
||||
uses path-style URLs.
|
||||
|
||||
If you use Amazon S3, `<ENDPOINT>` should contain your [Amazon Region][amazon-region].
|
||||
For example: If your Amazon Region is `us-east-2`,your endpoint `<ENDPOINT>`
|
||||
should be `https://s3.us-east-2.amazonaws.com`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue