Setup Radicale on OpenBSD
— 335 words — 2 min
Radicale lets you synchronize your calendar, contacts and tasks between multiple devices that support CalDAV and CardDAV. It’s written in Python.
On OpenBSD you can install the radicale with a simple
Adjust the configuration file in /etc/radicale/config
.
[server]
[auth]
htpasswd
/etc/radicale/users
bcrypt
Generate a password for user1
(run as root
).
Adjust permissions so that user of the _radicale
group can read the
file containing the users.
I’m using nginx here to proxy the relevant requests to radicale. You can
also configure radicale to listen on 0.0.0.0
and configure a
certificates and key for TLS; or configure it to listen on an internal
network address when you’re already running your own VPN.
Adjust the nginx
configuration to proxy requests to the radicale
service in /etc/nginx/nginx.conf
.
server {
443 ssl;
[...]
location /radicale/ {
/;X-Script-Name /radicale;
X-Forwarded-For $proxy_add_x_forwarded_for;
Authorization;
}
}
For an Apache configuration or managing radicale users with the reverse proxy take a look at the official documentation.
Replacing httpd with Nginx🔗
If you’re replacing httpd on OpenBSD with nginx, you might want to
adjust the logrotate configuration, too. Adjust the configuration in
/etc/newsyslog.conf
.
Replace these two lines
/var/www/logs/access.log 644 4 * $W0 Z "pkill -USR1 -u root -U root -x httpd"
/var/www/logs/error.log 644 7 250 * Z "pkill -USR1 -u root -U root -x httpd"
with
/var/www/logs/access.log 644 4 * $W0 Z /var/run/nginx.pid SIGUSR1
/var/www/logs/error.log 644 7 250 * Z /var/run/nginx.pid SIGUSR1
If you use nginx you should—definitely—read the pitfalls and common mistakes page.
Articles from blogs I follow around the net
Status update, October 2024
Hi! This month XDC 2024 took place in Montreal. I wasn’t there in-person, but thanks to the organizers I could still ask questions and attend workshops remotely (thanks!). As usual, XDC has been a great reminder of many things I wanted to do but which got bur…
via emersion October 21, 2024Wealth = Have ÷ Need
Not a new idea, but just another visualization and reminder. Wealth, feeling like you have plenty, is an equation. Wealth = Have ÷ Need If you have nothing, then focus on having some. Once you have some, the easiest way to increase your wealth is to decrease …
via Derek Sivers blog September 27, 2024Installing NetBSD on Linode
Instructions on how to install NetBSD on a Linode instance. All steps are performed via the command-line and serial console.
via Signs of Triviality September 14, 2024Generated by openring