about summary refs log tree commit diff
path: root/MatrixMediaGate/ProxyConfiguration.cs
blob: 0a126d4db18f41ba23888169b4611db0fc4f7b3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
namespace MatrixMediaGate;

public class ProxyConfiguration {
    //bind to config
    public ProxyConfiguration(IConfiguration configuration)
    {
        configuration.GetRequiredSection("ProxyConfiguration").Bind(this);
    }
    
    public required string Upstream { get; set; }
    public required string Host { get; set; }
    public required List<string> TrustedServers { get; set; }
    public bool ForceHost { get; set; }
}