mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
config.go: use a COMMENTO_ prefix
This commit is contained in:
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user