psi-4ward / psitransfer

Simple open source self-hosted file sharing solution.
BSD 2-Clause "Simplified" License
1.45k stars 211 forks source link

Setting base_url via ENV #308

Closed magnusoverli closed 1 month ago

magnusoverli commented 1 month ago

It would be very nice if we could set the base_url via environment variables. I share files with others via cloudflare, but they limit the supported upload file size to 100MB via their tunnel. This means I connect locally to the instance and upload files, but the links generated are then also locally based.

magnusoverli commented 1 month ago

I see that the base_url is configurable via config.json, but as I am running psitranfser via docker compose I dont think config.json is exposed to me?

psi-4ward commented 1 month ago

https://github.com/psi-4ward/psitransfer/blob/master/docs/configuration.md#environment-variables

https://github.com/psi-4ward/psitransfer/blob/master/docs/deployment-docker.md