mkaczanowski / pastebin

Simple, fast, standalone pastebin service
MIT License
155 stars 27 forks source link

Feature Request: Configurable root address for the generated paste links. #1

Closed BP-Santo closed 4 years ago

BP-Santo commented 4 years ago

Right now if not running in docker there seems to be no flag or documented way to bind on anything else than localhost:8000 however with a proxied setup the links generated for pastes show localhost instead of the proxy listen address.

Introducing an easily reachable setting for the address to be used for assembling those links would solve this problem :)

UPDATE: I figured out that cargo was not passing my flags properly to the binary so now I am able to pass parameters to rocket properly it seems. It still would be great to be able to pass a parameter for the link generation as described above.

BP-Santo commented 4 years ago

I managed to find the --uri parmeter, was not even aware the binary had its own help flag/page before digging around. It seems to work as intended so I thought to close this however I would argue that it would be best to mention these runtime parameters and how to properly pass them when using cargo run to launch the binary for users not familiar with the rust ecosystem.

Everything seems to work great for now, this is a very cool project :)