1
0
mirror of https://github.com/Luzifer/cloudbox.git synced 2024-09-16 13:58:32 +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)
}