ckulka / baikal-docker

Provides a ready-to-go Baikal server, incl. docker-compose.yml & Systemd service file
https://hub.docker.com/r/ckulka/baikal
MIT License
321 stars 46 forks source link

macos cant sync calendar #88

Closed sadden3194 closed 1 year ago

sadden3194 commented 2 years ago

Hi all!

I installed the web version of baikal. I created a .htaccess File in the root folder

Bildschirmfoto 2022-05-01 um 13 10 07

with this rules:

RewriteEngine On
RedirectMatch 301 ^/.well-known/caldav /html/cal.php
RedirectMatch 301 ^/.well-known/carddav /html/card.php

only ather this "modification" macOS is able to found and sync the calendar.

Now I would like to use your docker version - with the same macOS issue - but this time, I have no idea how can I fix it like above. Can you help me please? Thanks a lot

panzer-arc commented 2 years ago

Looking around in portainer, that file appears to be in /var/lib/docker/volumes/baikal_config/_data. You could try editing it there. It works for me by using something like /dav.php/principals/$username/default/ as the server path and port 80 (No SSL).

ckulka commented 1 year ago

Hi @Ghost108 ,

the Nginx and Apache httpd configuration files should already take care of this - do you have any issues when you used the Docker images?

Example configuration files used in version 0.9.2:

nillebor commented 1 year ago

Hi @Ghost108 ,

the Nginx and Apache httpd configuration files should already take care of this - do you have any issues when you used the Docker images?

Example configuration files used in version 0.9.2:

* https://github.com/ckulka/baikal-docker/blob/0.9.2/files/apache.conf

* https://github.com/ckulka/baikal-docker/blob/0.9.2/files/**apache.conf**

You mean?:

ckulka commented 1 year ago

Yes, copy-paste error :/

https://github.com/ckulka/baikal-docker/blob/18f7392c05271b14691e2ad0a984977dda623353/files/apache.conf#L10-L11

https://github.com/ckulka/baikal-docker/blob/18f7392c05271b14691e2ad0a984977dda623353/files/nginx.conf#L11-L12

nillebor commented 1 year ago

It works on the Diskstation with a LE certificate and connect over principal address. IOS works with https://yourdomain.tls/dav.php.

@ckulka, your webservers.conf are correct!

More information here (german).

ckulka commented 1 year ago

Thanks @nillebor for confirming.

Hi @Ghost108, the short answer is: it's not needed, as the root folder isn't accessible or served to browsers.

That redirect is not needed with the Docker image as the root folder is not (and should not) be accessible from the internet, only the contents inside the html folder should be.

That redirect and .htaccess file in the root folder might be required on some webhoster where you cannot configure which folders are and aren't served to browsers, they might just give you a root folder and everything within it will be served to browsers.

But since that's not the case with this Docker image (since it only serves the contents of the html folder to browsers), this .htaccess file isn't required.

I'll close this issue, but let me know if there is something unanswered 👍