Closed ghost closed 2 years ago
Should not be closed
I will look into it and get back to you guys :)
I think it's an issue with the passthru rule on the reverse proxy
According to this comment: https://github.com/hedgedoc/hedgedoc/issues/67#issuecomment-492123028
You have to set the right environment variables.
In my case, locally, I setted up the following env variables to make the filesystem
upload mode to work:
environment:
CMD_DB_URL: postgres://ctfnote:ctfnote@db:5432/ctfnote
CMD_URL_PATH: pad
CMD_IMAGE_UPLOAD_TYPE: filesystem
CMD_DOMAIN: 127.0.0.1 # This is the env var you want to set on your production server
This env var is affecting the link of the image when rendering markdown. But it affects other features as well :( I tried to tweak a bit to make the image link generic like //pad/images/test.png
but it broke the "static assets" loading of the page.
Fixed in 90fbd9364af6ec947f7ebf566f393ff63f73557c
You need to set tthe environment variables in .env
Trying to upload an image on a hedgedoc pad fails.
Logs from the container:
Reverting to the codimd image is a temporary fix, but any ideas on how to actually fix it?