Closed dmarlow closed 6 years ago
Hi @dmarlow,
Please have a look to nginx.conf.
Since I am running with PROD configuration, I put port 80 in for kestrel upsetting configuration. Then, nginx is listening on both 80 and 443 ports (80 forwards to 443).
Also, note that I am using a server_name to tell nginx which URL Hostname identifies this application.
What network settings do you have setup for docker? I tried what you have, but it wouldn't load balance as I would expect. I have nginx setup to serve on port 5100 and my dotnet app on 5000.
In my dotnet app's Dockerfile, I expose 5000 and in nginx.conf:
In the logs I have this:
I suspect that the bridged mode networking is causing some issues here.