config.go: Set CDN_PREFIX to ORIGIN if empty

This commit is contained in:
Adhityaa 2018-06-03 20:47:31 +05:30
parent 4e24e875cf
commit 08783df363

View File

@ -36,5 +36,9 @@ func parseConfig() error {
}
}
if os.Getenv("CDN_PREFIX") == "" {
os.Setenv("CDN_PREFIX", os.Getenv("ORIGIN"))
}
return nil
}