mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 18:26:32 -05:00
48052c609f
Signed-off-by: Philip Molares <philip.molares@udo.edu>
854 B
854 B
Imgur
You can use Imgur to handle your image uploads in HedgeDoc.
All you need for that is to register an application with Imgur and get a client id:
- Create an account on imgur.com and log in.
- Go to https://api.imgur.com/oauth2/addclient
- Fill out the form and choose "Anonymous usage without user authorization" as the authorization type.
- Imgur will then show you your client id.
Then you just add the following lines to your configuration:
(with the appropriate substitution for <IMGUR_CLIENT_ID>
of course)
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) in the column backendData
.