svenstaro/miniserve

Configuration with Environment variables

Closed this issue · 6 comments

It would be really nice, to configurate miniserve with env variables.

(In k8s it is possible to store Password safe in "Secrets" and use them as envFrom with secretRef - so basic auth credentials could be stored secure.)

Yeah, we should be able to get this functionality with very little effort thanks to clap as it's built-in. Want to take a stab at it?

@svenstaro Doesn't look to hard, you can see how dufs added support here
sigoden/dufs#170

Yeah should be pretty simple. Would you like to make a PR? I'm not sure when I'd get to it.

I am not familiar with Rust, nor use miniserve... only a has-been developer here 😆 I was just looking around for alternative options to filebrowser which I am currently using.

Can you guys check whether #1160 works for you?

Looks good to me, thanks! @svenstaro