Enable s3 transport scheme

This commit is contained in:
Cyril Rohr
2018-05-26 16:22:41 +02:00
committed by DarthSim
parent a5a46d6fc6
commit 7c7add8dc1
7 changed files with 53 additions and 18 deletions

View File

@@ -99,6 +99,8 @@ type config struct {
LocalFileSystemRoot string
S3Enabled bool
ETagEnabled bool
ETagSignature []byte
@@ -117,6 +119,7 @@ var conf = config{
Quality: 80,
GZipCompression: 5,
ETagEnabled: false,
S3Enabled: false,
}
func init() {
@@ -155,6 +158,8 @@ func init() {
strEnvConfig(&conf.LocalFileSystemRoot, "IMGPROXY_LOCAL_FILESYSTEM_ROOT")
boolEnvConfig(&conf.S3Enabled, "IMGPROXY_USE_S3")
boolEnvConfig(&conf.ETagEnabled, "IMGPROXY_USE_ETAG")
strEnvConfig(&conf.BaseURL, "IMGPROXY_BASE_URL")