C
C#11mo ago
whatsinaname

✅ .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
Pobiega
Pobiega11mo ago
did you also upgrade the runtime version in the docker file?
whatsinaname
whatsinanameOP11mo ago
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
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
whatsinaname
whatsinanameOP11mo ago
Yes but it doesn't work if you use the old webhost.createdefaultbuilder
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
whatsinaname
whatsinanameOP11mo ago
ASPNETCORE_URLS
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
whatsinaname
whatsinanameOP11mo ago
Yes. I need to change the createdefaultbuilder to the new way using the Host.
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?