Rename ProjectConfigurator, restructure Projects workspace, retire MediaCollection naming
- Rename MediaConfig -> ProjectConfigurator throughout; drop the Parameters
tab/page; rename the Mounts tab to Projects and restructure it into three
sections: Central services, Main services, Third-party services
- Add a self-describe contract (GET /api/info returning name/tabs/mountTypes)
and a server-side discovery proxy (POST /api/discover-service) so adding a
main service only requires a URL
- Add ProjectConfigurator HA: multiple instances now sync their settings with
each other (GET /api/settings/export, POST /api/settings/sync, a periodic
background puller), last-write-wins per key by updated_at
- Add a generic, project-agnostic file-storage API on CarrierNode
(GET/POST/DELETE /api/mount/{project}/{type}[/*]) driven by the same
configured_mounts data the Projects workspace already writes, usable by any
registered project, not just the media family
- Add last_login_at tracking to the shared auth Store/User (schema, queries,
UpdateLastLogin) and surface it through the shared web-ui ManagedUser type
and UserManagement component
- Retire the "MediaCollection" name: Go module -> repos.gfranz.ch/Gabriel20xx/shared/media-backend,
binary -> mediabackend, session cookie default -> "session", media-webui
merged into webui, media-shared-assets renamed to legacy-assets and pruned
to the one file MediaDesktop still uses
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
07cf3308da
commit
ee59571552
126 files changed
+2880
-8542
No files matched your search
@@ -17,27 +17,27 @@ const (
|
||||
ConfigService Service = "config"
|
||||
Moderator Service = "moderator"
|
||||
Kiosk Service = "kiosk"
|
||||
Servant Service = "servant"
|
||||
CarrierNode Service = "carriernode"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
Port string
|
||||
DatabaseURL string
|
||||
Service Service
|
||||
ServiceName string
|
||||
WebRoot string
|
||||
MediaRoots []string
|
||||
InputRoot string
|
||||
CopyRoot string
|
||||
WorkflowsRoot string
|
||||
ThumbnailRoot string
|
||||
OutputRoot string
|
||||
DownloadsRoot string
|
||||
ModelsRoot string
|
||||
AllowedOrigin string
|
||||
PublicURL string
|
||||
SessionCookie string
|
||||
SecureCookies bool
|
||||
Port string
|
||||
DatabaseURL string
|
||||
Service Service
|
||||
ServiceName string
|
||||
WebRoot string
|
||||
MediaRoots []string
|
||||
InputRoot string
|
||||
CopyRoot string
|
||||
WorkflowsRoot string
|
||||
ThumbnailRoot string
|
||||
OutputRoot string
|
||||
DownloadsRoot string
|
||||
ModelsRoot string
|
||||
AllowedOrigin string
|
||||
PublicURL string
|
||||
SessionCookie string
|
||||
SecureCookies bool
|
||||
// AuthGuardURL is AuthGuard's base URL (see Web/Central/AuthGuard);
|
||||
// empty means auth-disabled mode (see internal/auth's package doc
|
||||
// comment). Read raw via os.Getenv rather than envOr since "" is a
|
||||
@@ -49,7 +49,7 @@ type Config struct {
|
||||
YTDLP string
|
||||
ComfyURL string
|
||||
AnalyzerModelsURL string
|
||||
ServantURL string
|
||||
CarrierNodeURL string
|
||||
MaxUploadBytes int64
|
||||
TLSCertFile string
|
||||
TLSKeyFile string
|
||||
@@ -96,7 +96,7 @@ func Load() (*Config, error) {
|
||||
ModelsRoot: filepath.Clean(envOr("MODEL_CACHE_DIR", "./models")),
|
||||
AllowedOrigin: envOr("CORS_ORIGIN", "http://localhost:5173"),
|
||||
PublicURL: strings.TrimRight(strings.TrimSpace(os.Getenv("PUBLIC_URL")), "/"),
|
||||
SessionCookie: envOr("SESSION_COOKIE", "mediacollection_session"),
|
||||
SessionCookie: envOr("SESSION_COOKIE", "session"),
|
||||
SecureCookies: envBool("COOKIE_SECURE", os.Getenv("TLS_CERT_FILE") != ""),
|
||||
AuthGuardURL: strings.TrimSpace(os.Getenv("AUTHGUARD_URL")),
|
||||
InternalServiceSecret: strings.TrimSpace(os.Getenv("INTERNAL_SERVICE_SECRET")),
|
||||
@@ -105,7 +105,7 @@ func Load() (*Config, error) {
|
||||
YTDLP: envOr("YT_DLP_PATH", "yt-dlp"),
|
||||
ComfyURL: strings.TrimRight(envOr("COMFYUI_URL", "http://127.0.0.1:8188"), "/"),
|
||||
AnalyzerModelsURL: strings.TrimRight(envOr("ANALYZER_MODELS_URL", "http://127.0.0.1:8801"), "/"),
|
||||
ServantURL: strings.TrimRight(envOr("SERVANT_URL", "http://127.0.0.1:3003"), "/"),
|
||||
CarrierNodeURL: strings.TrimRight(envOr("CARRIERNODE_URL", "http://127.0.0.1:3003"), "/"),
|
||||
MaxUploadBytes: maxUpload,
|
||||
TLSCertFile: strings.TrimSpace(os.Getenv("TLS_CERT_FILE")),
|
||||
TLSKeyFile: strings.TrimSpace(os.Getenv("TLS_KEY_FILE")),
|
||||
@@ -128,14 +128,14 @@ func normalizeService(value string) Service {
|
||||
return Tools
|
||||
case "analyzer", "mediaanalyzer":
|
||||
return Analyzer
|
||||
case "config", "mediaconfig":
|
||||
case "config", "mediaconfig", "projectconfigurator":
|
||||
return ConfigService
|
||||
case "moderator", "mediamoderator":
|
||||
return Moderator
|
||||
case "kiosk", "mediakiosk":
|
||||
return Kiosk
|
||||
case "servant", "mediaservant":
|
||||
return Servant
|
||||
case "carriernode":
|
||||
return CarrierNode
|
||||
default:
|
||||
return ""
|
||||
}
|
||||
@@ -150,15 +150,15 @@ func serviceName(service Service) string {
|
||||
case Analyzer:
|
||||
return "MediaAnalyzer"
|
||||
case ConfigService:
|
||||
return "MediaConfig"
|
||||
return "ProjectConfigurator"
|
||||
case Moderator:
|
||||
return "MediaModerator"
|
||||
case Kiosk:
|
||||
return "MediaKiosk"
|
||||
case Servant:
|
||||
return "MediaServant"
|
||||
case CarrierNode:
|
||||
return "CarrierNode"
|
||||
default:
|
||||
return "MediaCollection"
|
||||
return "Shared Service"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,7 +168,7 @@ func defaultPort(service Service) string {
|
||||
return "3005"
|
||||
case Moderator:
|
||||
return "8090"
|
||||
case Servant:
|
||||
case CarrierNode:
|
||||
return "3003"
|
||||
default:
|
||||
return "3000"
|
||||
|
||||
Reference in new issue
Block a user