mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-09 13:51:57 -04:00
Docs: Add configuration documentation
This adds documentation for the configuration of HedgeDoc. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
7ef3e4a1f1
commit
9c2e47dcc4
7 changed files with 92 additions and 1 deletions
19
docs/content/config/media/imgur.md
Normal file
19
docs/content/config/media/imgur.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Imgur
|
||||
|
||||
You can use [Imgur](https://imgur.com) to handle your image uploads in HedgeDoc.
|
||||
|
||||
All you need for that is to register an application with Imgur and get a client id:
|
||||
|
||||
1. Create an account on imgur.com and log in.
|
||||
2. Go to <https://api.imgur.com/oauth2/addclient>
|
||||
3. Fill out the form and choose "Anonymous usage without user authorization" as the authorization type.
|
||||
4. Imgur will then show you your client id.
|
||||
|
||||
Then you just add the following lines to your configuration:
|
||||
<small>(with the appropriate substitution for `<IMGUR_CLIENT_ID>` of course)</small>
|
||||
```
|
||||
HD_MEDIA_BACKEND="imgur"
|
||||
HD_MEDIA_BACKEND_IMGUR_CLIENT_ID="<IMGUR_CLIENT_ID>"
|
||||
```
|
||||
|
||||
All uploads are saved in the `media_uploads` database table and contain the deletion token ([see here](https://apidocs.imgur.com/#949d6cb0-5e55-45f7-8853-8c44a108399c)) in the column `backendData`.
|
Loading…
Add table
Add a link
Reference in a new issue