* feat(backend): implemented azure blob storage support * feat(backend): added azure implementation to backend services * feat(backend): added azure blob storage support to chalice service * fix(backend): removed prev version of s3 * feat(backend): moved azure support to ee subfolder * feat(backend): prepared ee code for new utils.objects package * feat(backend): added missed modules to go.mod * feat(backend): added missed modules to go.sum * feat(backend): go mod tidy * feat(backend): temporary made s3 vars are not required * feat(backend): added azure lib to ee chalice * feat(api): changed azure env var name * feat(api): added new object store and extra methods to chalice ee * fix(api): added azure blob lib to alerts * fix(api): fixed incorrect call in sessions_devtool * fix(crons): added azure blob storage library to requirements list * chore(build): Error message for not providing flag. Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com> * feat(backend): removed ios headers and object store for ios messages * feat(backend): object config refactoring * chore(helm): Update BUCKET_NAME * fix(backend): removed object storage usage in http * feat(backend): added debug logs to azure upload method * fix(backend): fixed empty folder issue * fix(backend): removed extra debug log * chore(helm): Adding global variables for crons * chore(helm): Remove clickhouse resource limit Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com> * fix(backend): removed assets debug log * feat(api): use ABC class instead of empty interface * feat(api): renamed helpers to generators * feat(api): changed prep/clean dev scripts * feat(api): changed name obj_store -> StorageClient * feat(api): some changes after code review * fix(api): removed unnecesery packages in oss api * feat(backend): moved azure implementation to ee folder --------- Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com> Co-authored-by: rjshrjndrn <rjshrjndrn@gmail.com>
34 lines
1.3 KiB
Go
34 lines
1.3 KiB
Go
package http
|
|
|
|
import (
|
|
"openreplay/backend/internal/config/common"
|
|
"openreplay/backend/internal/config/configurator"
|
|
"openreplay/backend/pkg/env"
|
|
"time"
|
|
)
|
|
|
|
type Config struct {
|
|
common.Config
|
|
common.Postgres
|
|
HTTPHost string `env:"HTTP_HOST,default="`
|
|
HTTPPort string `env:"HTTP_PORT,required"`
|
|
HTTPTimeout time.Duration `env:"HTTP_TIMEOUT,default=60s"`
|
|
TopicRawWeb string `env:"TOPIC_RAW_WEB,required"`
|
|
TopicRawIOS string `env:"TOPIC_RAW_IOS,required"`
|
|
BeaconSizeLimit int64 `env:"BEACON_SIZE_LIMIT,required"`
|
|
CompressionThreshold int64 `env:"COMPRESSION_THRESHOLD,default=20000"`
|
|
JsonSizeLimit int64 `env:"JSON_SIZE_LIMIT,default=1000"`
|
|
FileSizeLimit int64 `env:"FILE_SIZE_LIMIT,default=10000000"`
|
|
TokenSecret string `env:"TOKEN_SECRET,required"`
|
|
UAParserFile string `env:"UAPARSER_FILE,required"`
|
|
MaxMinDBFile string `env:"MAXMINDDB_FILE,required"`
|
|
UseProfiler bool `env:"PROFILER_ENABLED,default=false"`
|
|
UseAccessControlHeaders bool `env:"USE_CORS,default=false"`
|
|
WorkerID uint16
|
|
}
|
|
|
|
func New() *Config {
|
|
cfg := &Config{WorkerID: env.WorkerID()}
|
|
configurator.Process(cfg)
|
|
return cfg
|
|
}
|