1
0
Fork 0
mirror of https://github.com/Luzifer/cloudbox.git synced 2024-11-08 06:00:12 +00:00

Enable configuration through ENV

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-06-30 05:39:56 +02:00
parent 74a496e44a
commit 302834bb01
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -38,6 +38,7 @@ var (
)
func init() {
rconfig.AutoEnv(true)
if err := rconfig.ParseAndValidate(&cfg); err != nil {
log.Fatalf("Unable to parse commandline options: %s", err)
}