From fae2a30a6d5cf848a986a8811bbdc839412919e7 Mon Sep 17 00:00:00 2001 From: Finn Date: Sun, 20 Oct 2024 21:54:22 -0700 Subject: [PATCH] allow specifying secrets via env --- config/config.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/config.go b/config/config.go index c8c9282..49383e4 100644 --- a/config/config.go +++ b/config/config.go @@ -53,6 +53,12 @@ func Load() error { } } + // someday i'll bring a proper config library, until then you get this + matrixPassword := os.Getenv("MATRIX_PASSWORD") + if matrixPassword != "" { + C.Matrix.Password = matrixPassword + } + return nil }