Writing · 2023 · 1 min

Using Radicale with Gnome Calendar

After reading this post on getting Radicale working on Gnome CalDav and CardDav. I just wanted to make my own post to show how it’s done in nginx. Here is the code below:

location /radicale/ { # The trailing / is important!
  proxy_pass        http://radicale:5232/; # The / is important!
  proxy_set_header  X-Script-Name /radicale;
  proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header  X-Remote-User $remote_user;
  proxy_set_header  Host $http_host;
  proxy_pass_header Authorization;
}

rewrite ^/.well-known/carddav /radicale/ redirect;
rewrite ^/.well-known/caldav /radicale/ redirect;
rewrite ^/remote.php/webdav /radicale/ redirect;
rewrite ^/remote.php/caldav /radicale/caldav/ redirect;
rewrite ^/remote.php/carddav /radicale/carddav/ redirect;

Put this code into your nginx conf to get caldav and carddav working on gnome.

Comments

No comments yet. Be the first.

Leave a comment

Plain text. Comments are reviewed before they appear; your email is never asked for.