vrtmrz / self-hosted-livesync-server

120 stars 25 forks source link

port conflict with nginx #3

Open ru61sco opened 2 years ago

ru61sco commented 2 years ago

seems that caddy needs port 80 and 443 and that conflicts with nginx. Is it possible to host the couchdb server and a nginx based website on the same server?

osimmac commented 2 years ago

yuh but not using this docker compose file. when using nginx, you need to setup the routing in proxy.conf. i used nginx as reverse proxy on a subdomain and name which pointed to this docker service and port.

wchorski commented 2 years ago

@osimmac - I too am trying to build couchDB with compose. Then I use Nginx Proxy Manager to route and add SSL cert.

currently, my Nginx Proxy Manager is only locally accessible. Are you saying I have to forward face my NginxPM for this to work? when you say "name which pointed" are you referring to Docker's DNS?

I keep getting a 500 error when trying to apply an SSL on my couchDB container

EDIT fixed.

  1. don't use any underscore _ in subdomain i.e.
      • 🚫 sub_domain.example.com
      • instead used ✅sub-domain.example.com
  2. in Nginx Proxy Manager UI had to create cert separately. Then added it on when creating proxy
Orwlit commented 5 months ago

yuh but not using this docker compose file. when using nginx, you need to setup the routing in proxy.conf. i used nginx as reverse proxy on a subdomain and name which pointed to this docker service and port.

I'm setting up this livesync with nginx too, but little experience on configuring nginx. would you please show me your nginx config file of this part and docker-compose.yml file? THANKS!!!