mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
config.go: Set CDN_PREFIX to ORIGIN if empty
This commit is contained in:
@ -36,5 +36,9 @@ func parseConfig() error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if os.Getenv("CDN_PREFIX") == "" {
|
||||||
|
os.Setenv("CDN_PREFIX", os.Getenv("ORIGIN"))
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user