Make the Worker validate its service container and align Worker and Gateway hosts

The Worker now registers the Application layer, observability and stream tickets, validates the
container on build and ships a complete appsettings. The Gateway drops underscore fields and uses a
placeholder bucket in its default YARP transform.
This commit is contained in:
2026-09-24 12:40:18 +02:00
parent fcf3093ad8
commit c4cf5af7f1
10 changed files with 92 additions and 52 deletions
+8
View File
@@ -340,10 +340,18 @@ services:
depends_on:
migrate:
condition: service_completed_successfully
keys-init:
condition: service_completed_successfully
environment:
<<: *backend-env
DOTNET_ENVIRONMENT: ${DOTNET_ENVIRONMENT}
# The Application handlers need these to build their dependencies; the
# Worker never issues stream tickets, so the key is never read.
StreamGateway__PublicBaseUrl: ${PUBLIC_STREAM_URL}
StreamTicket__PrivateKeyPath: /keys/stream_private.pem
Workers__Routes__TemporaryFilesDirectory: /tmp/musify
volumes:
- ./keys:/keys:ro
restart: unless-stopped
# YARP in front of the SeaweedFS filer: validates the RS256 stream ticket and