C
C#12mo ago
Dropps

✅ SSL Certificate for Docker for local development

hello there... i currently run into some issues with testing my app (asp.net web api and blazor web app) as i have both set to require an ssl certificate to run i would have to use some sort of local test cert well the issue with that is that when i run my apps using riders build in config starter everything is fine but as soon as i build the docker images for it and run it via that the development ssl certificate does not want to work anymore even tho i ran dotnet dev-certs https --trust before docker deploy anyone some ideas what could be wrong? env variables for both the api and the blazor web app are set to ASPNETCORE_ENVIRONMENT=Development on my local machine as well as in the docker compose file
14 Replies
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
Dropps
DroppsOP12mo ago
oh i see that makes sense i didnt even thought about the diffrent hosting parts... well if is till have use https redirect in my appbuilder middleware pipeline can i still get the http part to work? i dont own a domain yet but that could be an idea
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
Dropps
DroppsOP12mo ago
iam still trying to figure out one thing the api part is running on docker under the "backend" service name the frontend is running on docker under the "frontend" service name inside that docker container do i have to register the url to the api as backend docker "go to internal name" thingi or localhost?
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
Dropps
DroppsOP12mo ago
its hosted by it at least
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
Dropps
DroppsOP12mo ago
iam using .net8 blazor web app for it so i couldnt even tell if its serverside or webassembly
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
Dropps
DroppsOP12mo ago
that makes sense yes
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
Dropps
DroppsOP12mo ago
i guess i just have to use localhost then because if i open browser and wanna connect to api i use localhost as well so it wouldnt make sense to run the api part not on there but then i run into issue of if its serverside blazor running and not websssembly the api url will change as localhost is not a unambiguous url
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
Dropps
DroppsOP12mo ago
i guess i will just not worry about https for now sounds simpler
Want results from more Discord servers?
Add your server