Paperless via cloudflare

Hello,

Wanted to open a tunnel with cloudflare to my paperless app, however got stuck with error 403 - CSRF failed. Could you please help how to resolve?

Just found, that PAPERLESS_URL needs to be set, but dont know where exactly this shoud be set.

Thanks alot!

@lukasekk did you ever figure this out? I’ve tried to place the PAPERLESS_URL setting in docker-compse.yaml > webserver > environment, but this does not solve the issue for me.

If anyone knows more info about correctly editing the docker-compose.yaml or .env, any help would be excellent.