I have setup two instances and configures SSL to be used like below, however the RedirectToHttps does not work when browsing http://localhost:5000 on both instances. What is actually needed to get it to work?
“C:\ProgramData\PowerShellUniversal\appsettings.json”
{
“Kestrel”: {
“Endpoints”: {
“HTTPS”: {
“Url”: “https://*:443”,
“Certificate”: {
“Subject”: “%SERVERNAME%”,
“Store”: “My”,
“Location”: “LocalMachine”,
“AllowInvalid”: “true”
}
}
}
},
“Plugins”: [
“UniversalAutomation.LiteDBv5”
],
“Data”: {
“RepositoryPath”: “%ProgramData%\UniversalAutomation\Repository”,
“ConnectionString”: “%ProgramData%\UniversalAutomation\database.db”
},
“RedirectToHttps”: “true”
}
And in “C:\Program Files (x86)\Universal\appsettings.json”:
{
“Kestrel”: {
“Endpoints”: {
“HTTP”: {
“Url”: “http://*:5000”
}
},
“RedirectToHttps”: “false”,
“UseHttpSys”: “false”,
“BasePath”: “”,
“Hsts”: {
“MaxAgeDays”: 365
},
“CookiePolicy”: “”
},
“ApplicationInsights”: {
“InstrumentationKey”: “”
},