From 834d7a25c10366243177267c390769258fe859b8 Mon Sep 17 00:00:00 2001 From: XShine555 Date: Sat, 30 May 2026 02:30:18 +0200 Subject: [PATCH] Use development --- StreamingGateway/appsettings.Development.json | 32 ++++++++++++++++++ StreamingGateway/appsettings.json | 33 +------------------ 2 files changed, 33 insertions(+), 32 deletions(-) create mode 100644 StreamingGateway/appsettings.Development.json diff --git a/StreamingGateway/appsettings.Development.json b/StreamingGateway/appsettings.Development.json new file mode 100644 index 0000000..f18846a --- /dev/null +++ b/StreamingGateway/appsettings.Development.json @@ -0,0 +1,32 @@ +{ + "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/" } + } + } + } + } +} diff --git a/StreamingGateway/appsettings.json b/StreamingGateway/appsettings.json index 85e3e89..c382627 100644 --- a/StreamingGateway/appsettings.json +++ b/StreamingGateway/appsettings.json @@ -6,36 +6,5 @@ "Yarp": "Information" } }, - "AllowedHosts": "*", - - "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/" } - } - } - } - } + "AllowedHosts": "*" }