* feat(http): added new parameters to start response and new endpoint for canvas screenshorts * fix(http): added new topic to dockerfile * feat(http): try different multipart parser * feat(image-storage): reused the same workflow for canvas topic handler * feat(video-storage): new canvas parser and ffmpeg script * feat(video-storage): use correct replay name for canvas * feat(backend): added new message (CanvasNode) * feat(backend): add canvas record events to db * feat(backend): implemented missing new method for azure --------- Co-authored-by: Alexander <zavorotynskiy@pm.me>
23 lines
680 B
Go
23 lines
680 B
Go
package imagestorage
|
|
|
|
import (
|
|
"openreplay/backend/internal/config/common"
|
|
"openreplay/backend/internal/config/configurator"
|
|
)
|
|
|
|
type Config struct {
|
|
common.Config
|
|
FSDir string `env:"FS_DIR,required"`
|
|
ScreenshotsDir string `env:"SCREENSHOTS_DIR,default=screenshots"`
|
|
CanvasDir string `env:"CANVAS_DIR,default=canvas"`
|
|
TopicRawImages string `env:"TOPIC_RAW_IMAGES,required"`
|
|
TopicCanvasImages string `env:"TOPIC_CANVAS_IMAGES,required"`
|
|
GroupImageStorage string `env:"GROUP_IMAGE_STORAGE,required"`
|
|
UseProfiler bool `env:"PROFILER_ENABLED,default=false"`
|
|
}
|
|
|
|
func New() *Config {
|
|
cfg := &Config{}
|
|
configurator.Process(cfg)
|
|
return cfg
|
|
}
|