Created
May 3, 2021 10:03
-
-
Save JeepNL/984ff44af2b897d2b6d101fdf6256371 to your computer and use it in GitHub Desktop.
YARP appsettings.Development.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// | |
// Logging | |
// | |
"Logging": { | |
"LogLevel": { | |
"Default": "Information", | |
"Microsoft": "Information", | |
"Yarp": "Information", | |
"Microsoft.Hosting.Lifetime": "Information" | |
} | |
}, | |
// | |
// General | |
// | |
//"AllowedHosts": "production.localhost;beta.localhost", | |
"AllowedHosts": "*", | |
// | |
// Kestrel | |
// | |
"Kestrel": { | |
"Endpoints": { | |
//"Http": { | |
// "Url": "http://[::]:10080", | |
// "Protocols": "Http1AndHttp2" | |
//}, | |
"HttpsSni": { | |
"Url": "https://[::]:10443", | |
"Sni": { | |
"production.localhost": { | |
"Protocols": "Http1AndHttp2", | |
"ClientCertificateMode": "NoCertificate", // #TODO What's this? | |
"SslProtocols": [ "Tls11", "Tls12", "Tls13" ], | |
"Certificate": { | |
"Path": "cert.pfx", | |
"Password": "<password>" | |
} | |
}, | |
"beta.localhost": { | |
"Protocols": "Http1AndHttp2", | |
"ClientCertificateMode": "NoCertificate", // #TODO What's this? | |
"SslProtocols": [ "Tls11", "Tls12", "Tls13" ], | |
"Certificate": { | |
"Path": "cert.pfx", | |
"Password": "<password>" | |
} | |
} | |
} | |
} | |
} | |
}, | |
// | |
// YARP | |
// | |
"ReverseProxy": { | |
"Routes": { | |
"localhostProductionRoute": { | |
"ClusterId": "localhostProductionCluster", | |
"Match": { | |
"Hosts": [ "production.localhost" ] | |
} | |
}, | |
"localhostBetaRoute": { | |
"ClusterId": "localhostBetaCluster", | |
"Match": { | |
"Hosts": [ "beta.localhost" ] | |
} | |
} | |
}, | |
"Clusters": { | |
"localhostProductionCluster": { | |
"Destinations": { | |
"production.localhost": { | |
"Address": "https://production.localhost:5001" // localhost main site | |
} | |
} | |
}, | |
"localhostBetaCluster": { | |
"Destinations": { | |
"beta.localhost": { | |
"Address": "https://beta.localhost:5002" // localhost beta site | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment