/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
samples/ReverseProxy.LetsEncrypt.Sample/appsettings.json
50 строк
1 KB
Katya Sokolova
Add Lets Encrypt sample and article (#1673)
29 апр 2022, 10:55
Не верифицирован
29 апр 2022, 10:55
8dbed05
Код
Авторство
О чём код?
{ "Kestrel": { "Endpoints": { "Http": { "Url": "http://*:80" }, "Https": { "Url": "https://*:443" } } }, "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Information", "Microsoft.Hosting.Lifetime": "Information" } }, "AllowedHosts": "*", "ReverseProxy": { "Routes": { "route1": { "ClusterId": "cluster1", "Match": { "Path": "{**catch-all}" } } }, "Clusters": { "cluster1": { "Destinations": { "destination1": { "Address": "https://example.com/" } } } } }, "LettuceEncrypt": { // Set this to automatically accept the terms of service of your certificate authority. // If you don't set this in config, you will need to press "y" whenever the application starts "AcceptTermsOfService": true, // You must specify at least one domain name "DomainNames": [ "example.com" ], // You must specify an email address to register with the certificate authority "EmailAddress": "it-admin@example.com" } }