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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user