Skip to content

Commit

Permalink
entrypoint/: process config env vars with "-" as well
Browse files Browse the repository at this point in the history
to support config options with "-" in names.
  • Loading branch information
Al2Klimov authored Apr 19, 2024
1 parent dca97e5 commit 0b3f77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
const configDir = "/etc/icingadb"

var config = path.Join(configDir, "icingadb.yml")
var myEnv = regexp.MustCompile(`(?s)\AICINGADB_(\w+?)_(\w+)=(.*)\z`)
var myEnv = regexp.MustCompile(`(?s)\AICINGADB_([-\w]+?)_([-\w]+)=(.*)\z`)

var log = func() *zap.Logger {
logger, err := zap.NewDevelopment()
Expand Down

0 comments on commit 0b3f77e

Please sign in to comment.