This commit is contained in:
2026-05-30 03:29:21 +02:00
parent 5751b9ea08
commit 46985bf062
10 changed files with 195 additions and 0 deletions
@@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
namespace Musify.Infrastructure.Configuration
{
public class StreamTicketConfiguration
{
public const string SectionName = "StreamTicket";
[Required]
public required string PrivateKeyPath { get; set; }
[Required]
public string Audience { get; set; } = "media-gateway";
[Required]
public string Issuer { get; set; } = "musify-webapi";
[Range(60, 86400)]
public int TicketTtlSeconds { get; set; } = 3600;
}
}