fix(backend-http): correct storage init
This commit is contained in:
parent
2bae8a357d
commit
aa6b88ea76
1 changed files with 1 additions and 2 deletions
|
|
@ -52,8 +52,7 @@ func main() {
|
|||
rewriter = assets.NewRewriter(env.String("ASSETS_ORIGIN"))
|
||||
pgconn = cache.NewPGCache(postgres.NewConn(env.String("POSTGRES_STRING")), 1000 * 60 * 20)
|
||||
defer pgconn.Close()
|
||||
s3 = storage.NewS3(env.String("S3_BUCKET_IOS_IMAGES"), env.String("AWS_REGION"))
|
||||
log.Printf("Sr storage: %v, %v ",env.String("S3_BUCKET_IOS_IMAGES"), env.String("AWS_REGION"))
|
||||
s3 = storage.NewS3(env.String("AWS_REGION"), env.String("S3_BUCKET_IOS_IMAGES"))
|
||||
tokenizer = token.NewTokenizer(env.String("TOKEN_SECRET"))
|
||||
uaParser = uaparser.NewUAParser(env.String("UAPARSER_FILE"))
|
||||
geoIP = geoip.NewGeoIP(env.String("MAXMINDDB_FILE"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue