Sync shared snapshot from 2e6baaa

This commit is contained in:
Gabriel20xx committed 2026-09-06 22:51:07 +02:00
1 parent 5ea8551d60
commit 81b62cdc26
34 files changed
+197 -121

No files matched your search

+16 -16
View File
@@ -11,13 +11,13 @@ import (
type Service string
const (
Viewer Service = "viewer"
Tools Service = "tools"
Analyzer Service = "analyzer"
ConfigService Service = "config"
Moderator Service = "moderator"
Kiosk Service = "kiosk"
CarrierNode Service = "carriernode"
Viewer Service = "viewer"
CraftStudio Service = "craftstudio"
ContentScanner Service = "contentscanner"
ConfigService Service = "config"
Moderator Service = "moderator"
Kiosk Service = "kiosk"
CarrierNode Service = "carriernode"
)
type Config struct {
@@ -89,7 +89,7 @@ func Load() (*Config, error) {
MediaRoots: roots,
InputRoot: filepath.Clean(envOr("INPUT_DIR", "./input")),
CopyRoot: filepath.Clean(envOr("UPLOAD_COPY_DIR", "./copy")),
WorkflowsRoot: filepath.Clean(envOr("WORKFLOWS_DIR", filepath.Join("..", "MediaTools", "public", "workflows"))),
WorkflowsRoot: filepath.Clean(envOr("WORKFLOWS_DIR", filepath.Join("..", "CraftStudio", "public", "workflows"))),
ThumbnailRoot: filepath.Clean(envOr("THUMBNAIL_DIR", "./thumbnails")),
OutputRoot: filepath.Clean(envOr("OUTPUT_DIR", "./output")),
DownloadsRoot: filepath.Clean(envOr("DOWNLOADS_DIR", "./downloads")),
@@ -124,10 +124,10 @@ func normalizeService(value string) Service {
switch strings.ToLower(strings.TrimSpace(value)) {
case "viewer", "mediaviewer":
return Viewer
case "tools", "mediatools":
return Tools
case "analyzer", "mediaanalyzer":
return Analyzer
case "craftstudio":
return CraftStudio
case "contentscanner":
return ContentScanner
case "config", "mediaconfig", "projectconfigurator":
return ConfigService
case "moderator", "mediamoderator":
@@ -145,10 +145,10 @@ func serviceName(service Service) string {
switch service {
case Viewer:
return "MediaViewer"
case Tools:
return "MediaTools"
case Analyzer:
return "MediaAnalyzer"
case CraftStudio:
return "CraftStudio"
case ContentScanner:
return "ContentScanner"
case ConfigService:
return "ProjectConfigurator"
case Moderator: