hedgedoc/docs/content/references/config/media/azure.md
Philip Molares e07cd62596 docs: restructure documentation
This rewrite follows the principles of https://diataxis.fr/

Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-09-17 21:50:21 +02:00

1.2 KiB

Azure Blob Storage

You can use Microsoft Azure Blob Storage to handle your image uploads in HedgeDoc.

All you need to do is to get the connection string for your storage account and create a storage container with public access set to 'blob'.

It's possible to create the container with the Azure CLI, using your connection string, with the following command:

az storage container create --name <NAME> --public-access blob--connection-string "<CONNECTION_STRING>"

You can of course also create the container in the Azure portal if you prefer.

Then you just add the following lines to your configuration:
(with the appropriate substitution for <CONNECTION_STRING> and <NAME> of course)

HD_MEDIA_BACKEND="azure"
HD_MEDIA_BACKEND_AZURE_CONNECTION_STRING="<CONNECTION_STRING>"
HD_MEDIA_BACKEND_AZURE_CONTAINER="<NAME>"