mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-28 20:43:54 +02:00
Add IMGPROXY_BASE_URL param
This commit is contained in:
@@ -101,6 +101,8 @@ type config struct {
|
||||
|
||||
ETagEnabled bool
|
||||
ETagSignature []byte
|
||||
|
||||
BaseURL string
|
||||
}
|
||||
|
||||
var conf = config{
|
||||
@@ -155,6 +157,8 @@ func init() {
|
||||
|
||||
boolEnvConfig(&conf.ETagEnabled, "IMGPROXY_USE_ETAG")
|
||||
|
||||
strEnvConfig(&conf.BaseURL, "IMGPROXY_BASE_URL")
|
||||
|
||||
if len(conf.Key) == 0 {
|
||||
log.Fatalln("Key is not defined")
|
||||
}
|
||||
|
Reference in New Issue
Block a user