mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-28 20:43:54 +02:00
Enable s3 transport scheme
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user