What I expected to happen:
I want to upload local pictures
What actually happened:
I failed to upload the local picture in the document. How should I modify the configuration file
thank you to everyone
I already tried:
I have tried modifying default.js,lutim:{url:‘myIP:3000’},but still can’t upload
I don’t understand what ‘‘filesystem’’ means
I was not found in the https://docs.hedgedoc.org/configuration/#hedgedoc-basics about the configuration of local image upload
Do you have a configuration for uploading images from the client to the server?
First, you don’t need to change any JavaScript code files like default.js in order to configure your instance.
Depending on how you set up your HedgeDoc instance there are two ways how to configure it: In case of a docker setup, you might want to set some environment variables, otherwise you could run bin/setup from the root of your installation and afterwards tweak the config.json file.
The “filesystem” upload type means, that user uploads are stored to and served from a local directory on your server. You just need to set the CMD_DOMAIN environment variable or the domain config.json key.
thank you very much for your help,I tried to run the ./bin/setup command and it worked
I modified the ‘domain’ parameter in config.json, but it made my website inaccessible, so I can only restore it. Could you please tell me how I can modify it to upload pictures
I’m sorry to bother you, but can you help me again?