szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.65k stars 163 forks source link

Being able to add Command Line Arguments as Environment Variables for docker version #122

Closed AuthorShin closed 1 year ago

AuthorShin commented 1 year ago

Hello That would be very great and super easy for everyone if you consider adding an option to be able to add Command Line Arguments as Environment Variables for docker version.

PerchunPak commented 1 year ago

It's already implemented. You can use MICROBIN_BIND=0.0.0.0 for --bind 0.0.0.0 or MICROBIN_PRIVATE=true for --private.

AuthorShin commented 1 year ago

@PerchunPak Thank you for the answer, where can I find the full list/guide?

PerchunPak commented 1 year ago

Just look at text in brackets in docs. And do not forget append to every key MICROBIN_ prefix, so if you see AUTH_USERNAME actual environment variable would be MICROBIN_AUTH_USERNAME=some_value.

AuthorShin commented 1 year ago

Thanks a lot mate, highly appreciated.

PerchunPak commented 1 year ago

NP, please close this, as it seems like resolved.

timdonovanuk commented 10 months ago

Might want to update the URL here, as it's broken. And the documentation does not make it clear that the command line arguments are not actually what is documented on the page:

https://microbin.eu/docs/installation-and-configuration/configuration

MICROBIN_BASIC_AUTH_USERNAME is actually --basic_auth_username etc.