Icinga / docker-icingadb

GNU General Public License v2.0
3 stars 5 forks source link

retention enviroment vars problem #58

Open Roma89 opened 1 year ago

Roma89 commented 1 year ago

Hi All, I added the env vars to the container: ICINGADB_RETENTION_HISTORY-DAYS: “60” ICINGADB_RETENTION_SLA-DAYS: “60”

there is no trace of retention in the configuration icingadb.yml : {"database":{"database":"icingadb","host":"test","password":"test","port":5432,"type":"pgsql","user":"icingadb"},"redis":{"host":"redis-icingadb","port":6379}}

I saw that a regex is made in the entrypoint: var myEnv = regexp.MustCompile((?s)\AICINGADB_(\w+?)_(\w+)=(.*)\z) if i'm not mistaken it doesn't support using the "-" in the variable Am I doing something wrong or is there an issue?