diff options
author | Yannick Bungers | 2021-01-05 17:27:24 +0100 |
---|---|---|
committer | GitHub | 2021-01-05 17:27:24 +0100 |
commit | 73d237165ea8fe411b764e5b5d1a2f51a2e02a0b (patch) | |
tree | 851df47886b64ac3c37ab6b809f300cd0dd99c0a /docs/guides/minio-image-upload.md | |
parent | d52d1d255a876fcf937c9df3717f6df9b745ad22 (diff) | |
parent | d39c7deb32044a4a34e9c158f168070181b8ae9f (diff) |
Merge pull request #656 from hedgedoc/docs/move-content
Move docs into subdirectory to make structor work
Diffstat (limited to 'docs/guides/minio-image-upload.md')
-rw-r--r-- | docs/guides/minio-image-upload.md | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/docs/guides/minio-image-upload.md b/docs/guides/minio-image-upload.md deleted file mode 100644 index 41d9b14e..00000000 --- a/docs/guides/minio-image-upload.md +++ /dev/null @@ -1,94 +0,0 @@ -# Minio Guide for HedgeDoc - -*Note:* This guide was written before the renaming. Just replace `HackMD` with `HedgeDoc` in your mind :smile: thanks! - -1. First of all you need to setup Minio itself. - - Please refer to the [official Minio docs](https://docs.minio.io/) for an - production setup. - - For checking it out and development purposes a non-persistent setup is enough: - ```sh - docker run --name test-minio --rm -d -p 9000:9000 minio/minio server /data - ``` - - *Please notice this is not for productive use as all your data gets lost - when you stop this container* - -2. Next step is to get the credentials form the container: - - ```sh - docker logs test-minio - ``` - -  - -3. Open <http://localhost:9000> and login with the shown credentials. - -  - -4. Create a bucket for HedgeDoc - -  - -5. Add a policy for the prefix `uploads` and make it read-only. - -  - *Open policy editor* - -  - *Add policy for uploads* - -6. Set credentials and configs for Minio in HedgeDoc's `config.json` - - ```JSON - "minio": { - "accessKey": "888MXJ7EP4XXXXXXXXX", - "secretKey": "yQS2EbM1Y6IJrp/1BUKWq2/XXXXXXXXXXXXXXX", - "endPoint": "localhost", - "port": 9000, - "secure": false - } - ``` - *You have to use different values for `endpoint` and `port` for a production - setup. Keep in mind the `endpoint`-address has to be public accessible from - your browser.* - -7. Set bucket name - - ```JSON - "s3bucket": "hedgedoc" - ``` - -8. Set upload type. - - ```JSON - "imageuploadtype": "minio" - ``` - -9. Review your config. - - ```json - { - // all your other config… - "minio": { - "accessKey": "888MXJ7EP4XXXXXXXXX", - "secretKey": "yQS2EbM1Y6IJrp/1BUKWq2/XXXXXXXXXXXXXXX", - "endPoint": "localhost", - "port": 9000, - "secure": false - }, - "s3bucket": "hedgedoc", - "imageuploadtype": "minio" - } - ``` - -10. If you were using filesystem before - -and you want to migrate assets to minio. - -You could use a convenience script located in `bin/migrate_from_fs_to_minio`. - -Be careful, read carefully what it does, it was not tested in all environments. - -Take it as an inspiration to make your own migration script.
\ No newline at end of file |