✅ .NET 8 migration from .net 7
Facing issues with the nginx connecting to dotnet 8 apps using docker. This used to work fine but after the upgraded to 8, locally it works but when we deploy the nginx is giving 502 bad gateway. Any solution for this? It is showing *:5000 after deployment
9 Replies
did you also upgrade the runtime version in the docker file?
Yes
Everything is done
The issue is they defaulted to 8080 or 5000
But our nginx is looking for 80
It's resolved after adding an environment variable
Aspneturls
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
Yes but it doesn't work if you use the old webhost.createdefaultbuilder
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
ASPNETCORE_URLS
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
Yes.
I need to change the createdefaultbuilder to the new way using the Host.
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View