Overriding Kestrel endpoints from appsettings.json? #12484
              
                Unanswered
              
          
                  
                    
                      CharlieDigital
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
In my
appsettings.json, I have Kestrel configured like so:If I try to run
.WithReplicas(4), only one of the instances will successfully start as the other instances see that the port is already taken.If I set these to
http://0.0.0.0, then everything works as expected. However, when running standalone, we have other services that are dependent on these known ports.I would have thought:
would override it, but I am finding that this is not the case.
I think I'm also misunderstanding the
ProjectResourceOptions.ExcludeKestrelEndpointssetting as this does not seem to have an effect. Is there are better workaround for this setup?Beta Was this translation helpful? Give feedback.
All reactions