sabre-io / Baikal

Baïkal is a Calendar+Contacts server
https://sabre.io/baikal/
GNU General Public License v3.0
2.46k stars 284 forks source link

Baikal Refuses to work with Nginx Proxy Manager. Cannot Get SSL #1276

Open F1zzyD opened 1 month ago

F1zzyD commented 1 month ago

Baikal version: 0.9.5

As of now, Baikal is unable to work well with Nginx Proxy Manager. I am trying to put out a calendar link through NPM and send it securely to Cloudflare, however NPM fails to resolve Radicale's address.

Here's what I want:

Here's what I've done

  1. Set NPM to forward "https://test.domain.com/" to "http://localhost:5232/"
  2. Set NPM to forward "https://test.domain.com/" to for example "http://localhost:5232/dav.php/calendars/user/default/"
  3. Set NPM to use "Custom locations" and put "/dav.php/calendars/user/default/" in the location area
  4. Added many variations of code to the Advanced area of NPM

What I've made sure of:

So far, nothing seems to work. NPM works with all of my other services but fails to operate with Baikal.

mcok commented 1 month ago

If you're using a reverse proxy for Baikal, you need to ensure two conditions: the Host header must include the correct port number, and the correct protocol must be forwarded.

proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-Proto $scheme;