23 lines
607 B
C#
23 lines
607 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Musify.Application.Configuration;
|
|
|
|
namespace Musify.Infrastructure.Configuration
|
|
{
|
|
public class StreamTicketConfiguration : IConfigurationOptions
|
|
{
|
|
public static 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;
|
|
}
|
|
}
|