config.go: Set CDN_PREFIX to ORIGIN if empty
This commit is contained in:
parent
4e24e875cf
commit
08783df363
@ -36,5 +36,9 @@ func parseConfig() error {
|
||||
}
|
||||
}
|
||||
|
||||
if os.Getenv("CDN_PREFIX") == "" {
|
||||
os.Setenv("CDN_PREFIX", os.Getenv("ORIGIN"))
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user