diff --git a/backend/Musify.StreamingGateway/appsettings.Development.json b/backend/Musify.StreamingGateway/appsettings.Development.json index f18846a..7000da9 100644 --- a/backend/Musify.StreamingGateway/appsettings.Development.json +++ b/backend/Musify.StreamingGateway/appsettings.Development.json @@ -1,32 +1,5 @@ { "StreamTicket": { - "PublicKeyPath": "D:\\weed\\stream_public.pem", - "Audience": "media-gateway", - "Issuer": "musify-webapi", - "QueryParameterName": "t", - "MediaPathPrefix": "/media" - }, - - "Cors": { - "AllowedOrigins": [ "http://localhost:5173", "http://localhost:3000" ] - }, - - "ReverseProxy": { - "Routes": { - "media": { - "ClusterId": "seaweed-filer", - "Match": { "Path": "/media/{**rest}" }, - "Transforms": [ - { "PathPattern": "/buckets/webapi-storage/{**rest}" } - ] - } - }, - "Clusters": { - "seaweed-filer": { - "Destinations": { - "filer": { "Address": "http://localhost:8888/" } - } - } - } + "PublicKeyPath": "../../deploy/keys/stream_public.pem" } } diff --git a/backend/Musify.StreamingGateway/appsettings.json b/backend/Musify.StreamingGateway/appsettings.json index c382627..a2eeaa5 100644 --- a/backend/Musify.StreamingGateway/appsettings.json +++ b/backend/Musify.StreamingGateway/appsettings.json @@ -6,5 +6,36 @@ "Yarp": "Information" } }, - "AllowedHosts": "*" + "AllowedHosts": "*", + + "StreamTicket": { + "PublicKeyPath": "", + "Audience": "media-gateway", + "Issuer": "musify-webapi", + "QueryParameterName": "t", + "MediaPathPrefix": "/media" + }, + + "Cors": { + "AllowedOrigins": [] + }, + + "ReverseProxy": { + "Routes": { + "media": { + "ClusterId": "seaweed-filer", + "Match": { "Path": "/media/{**rest}" }, + "Transforms": [ + { "PathPattern": "/buckets/webapi-storage/{**rest}" } + ] + } + }, + "Clusters": { + "seaweed-filer": { + "Destinations": { + "filer": { "Address": "http://localhost:8888/" } + } + } + } + } }