Xandikos is a lightweight yet complete CardDAV/CalDAV server that backs onto a Git repository.
Xandikos (Ξανδικός or Ξανθικός) takes its name from the name of the March month in the ancient Macedonian calendar, used in Macedon in the first millennium BC.
Features
- Easy to set up
- Share calendars (events, todo items, journal entries) via CalDAV and contacts (vCard) via CardDAV
- Automatically keep history and back up changes in Git
- Supports synchronization extensions for CalDAV/CardDAV for quick and efficient syncing
- Automatically keep history and back up
- Works with all tested CalDAV and CardDAV clients
- Licensed under the GNU GPLv3 (or later)
Limitations
- No multi-user support
- No support for CalDAV scheduling extensions
Dependencies
At the moment, Xandikos supports Python 3.4 and higher as well as Pypy 3. It also uses Dulwich, Jinja2, icalendar, and defusedxml.
E.g. to install those dependencies on Debian:
sudo apt install python3-dulwich python3-defusedxml python3-icalendar python3-jinja2
Or to install them using pip:
python setup.py develop
Running
Testing
To run a standalone (no authentication) instance of Xandikos, with a pre-created calendar and addressbook (storing data in $HOME/dav):
./bin/xandikos --defaults -d $HOME/dav
A server should now be listening on localhost:8080.
Note that Xandikos does not create any collections unless --defaults is specified. You can also either create collections from your CalDAV/CardDAV client, or by creating git repositories under the contacts or calendars directories it has created.
Production
The easiest way to run Xandikos in production is using uWSGI.
One option is to setup uWSGI with a server like Apache, Nginx or another web server that can authenticate users and forward authorized requests to Xandikos in uWSGI. See examples/uwsgi.ini for an example uWSGI configuration.
Alternatively, you can run uWSGI standalone and have it authenticate and directly serve HTTP traffic. An example configuration for this can be found in examples/uwsgi-standalone.ini.
This will start a server on localhost:8080 with username user1 and password password1.
mkdir -p $HOME/dav
uwsgi examples/uwsgi-standalone.ini