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

You can use your Fediverse (i.e. Mastodon, among many others) account to reply to this post.

Related Posts

Test Your Chinese Using This Quiz

Using Sidekiq Iteration and Unique Jobs

Why I Regret Switching from Jekyll to Middleman for My Blog

Pick Random Item Based on Probability

Quickest Way to Incorporate in Ontario

Creating Chinese Study Decks

Generating Better Random Numbers

Image Magick Tricks

My Game Dev Process

Unit Manager Code Snippet