drop baked-in Kestrel:Endpoints:Https from Yavsc.Blogs / Yavsc.Api
Both appsettings-blogs.json and appsettings-api.json shipped a Kestrel:Endpoints:Https block pointing at https://localhost:3003 and https://localhost:3004 respectively. These are leftover dev templates that don't match the production ports (5004/5005 for Blogs, 5002/5003 for Api) and crash Kestrel at startup when no cert is configured for those URLs. docker-compose.yaml now sets ASPNETCORE_URLS explicitly per service runtime (http://+:5000/5002/5004 + ASPNETCORE_HTTPS_PORT=empty), which is the authoritative source for the binding. The baked Kestrel block in the appsettings overrides nothing useful and just blocks HTTP-only startup. Search confirms no source code references localhost:3003/3004 (grep across src/*.{cs,json,axaml,cshtml} returns only the two lines we just deleted), so removing the block is safe.
This commit is contained in:
parent
332e30db27
commit
234c837937
2 changed files with 2 additions and 16 deletions
|
|
@ -12,12 +12,5 @@
|
|||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"Kestrel": {
|
||||
"Endpoints": {
|
||||
"Https":{
|
||||
"Url": "https://localhost:3004"
|
||||
}
|
||||
}
|
||||
}
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue