-
What Upstream Address should I use when trying to use Caprover Nginx Reverse Proxy? Because I cannot simple use caddy, because port is already in use. But I found I can't use localhost, because it would point to it own container. Do you know what Upstream Address I should use? I tried I have the Nginx Reverse Proxy Docker Container from Caprover, and Code-server is running baremetal on the host. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
For the NGINX container to be able to proxy to something else on the same host I think you'll have to set up a network or use docker-compose which automatically creates a private network between the services. https://stackoverflow.com/questions/38378635/nginx-as-reverse-proxy-on-another-container-how-to-configure-the-config-files But I think this requires code-server to also be in a container. You could also probably use Lastly, you should be able to use the |
Beta Was this translation helpful? Give feedback.
-
Fixed it my setting |
Beta Was this translation helpful? Give feedback.
Fixed it my setting
bind-addr:
to IP from docker0 and Port. Then Nginx could reach it