C
C#10mo 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
Pobiega10mo ago
did you also upgrade the runtime version in the docker file?
whatsinaname
whatsinanameOP10mo 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 User10mo ago
Message Not Public
Sign In & Join Server To View
whatsinaname
whatsinanameOP10mo ago
Yes but it doesn't work if you use the old webhost.createdefaultbuilder
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
whatsinaname
whatsinanameOP10mo ago
ASPNETCORE_URLS
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
whatsinaname
whatsinanameOP9mo ago
Yes. I need to change the createdefaultbuilder to the new way using the Host.
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server