.well-known seems to work but still a warning (using Traefik)

I have nextcloud up and running using Traefik as proxy. When I navigate to my-cloud.de/.well-known/caldav I get redirected to my-cloud.de/remote.php/dav - which I think is correct. However, in the settings I still get a warning

Your web server is not properly set up to resolve “/.well-known/caldav”.

Also, while I’m able to connect the calendar on my phone, it fails on OSX. I’m assuming, has to do with this “.well-known” issue.

There have been quite some questions around this topic in this forum, however, most are about configuring Apache, I’m using Traefik. The configuration is:

      - "traefik.http.middlewares.nextcloud-redirectregex.redirectregex.regex=/.well-known/(card|cal)dav"
      - "traefik.http.middlewares.nextcloud-redirectregex.redirectregex.replacement=/remote.php/dav/"
      - "traefik.http.middlewares.nextcloud-redirectregex.redirectregex.permanent=true"
      - traefik.http.services.nextcloud.loadbalancer.server.port=80

Do I have to set any headers, maybe?

i use “replacepathregex” instead of “redirectregex”:

nevertheless up to now i couldn’t get rid of the webfinger warning. but remote.php/dav seems to work well.

1 Like

Hm, this does not seem to change anything. The redirect still works, but the Warning is still displayed and I cannot connect my OSX clients.