1
mirror of https://gitlab.com/commento/commento.git synced 2026-06-17 09:55:27 -04:00

config.go: use a COMMENTO_ prefix

This commit is contained in:
Adhityaa
2018-06-07 14:03:17 +05:30
parent 7c75792622
commit e80617d41c
+3 -1
View File
@@ -23,8 +23,10 @@ func parseConfig() error {
}
for key, value := range defaults {
if os.Getenv(key) == "" {
if os.Getenv("COMMENTO_" + key) == "" {
os.Setenv(key, value)
} else {
os.Setenv(key, os.Getenv("COMMENTO_" + key))
}
}