self-hosted-livesync-server icon indicating copy to clipboard operation
self-hosted-livesync-server copied to clipboard

port conflict with nginx

Open ru61sco opened this issue 2 years ago • 3 comments

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?

ru61sco avatar Apr 07 '22 10:04 ru61sco

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.

osimmac avatar Aug 08 '22 07:08 osimmac

@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
  1. in Nginx Proxy Manager UI had to create cert separately. Then added it on when creating proxy

wchorski avatar Sep 28 '22 15:09 wchorski

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!!!

Orwlit avatar May 01 '24 15:05 Orwlit