1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-30 21:12:05 +00:00
Radicale/fix-1878.html
2025-09-27 06:10:45 +00:00

2635 lines
169 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta content="pandoc" name="generator">
<meta content="width=device-width, initial-scale=1" name="viewport">
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
/* The extra [class] is a hack that increases specificity enough to
override a similar rule in reveal.js */
ul.task-list[class]{list-style: none;}
ul.task-list li input[type="checkbox"] {
font-size: inherit;
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
/* CSS for syntax highlighting */
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #aaaaaa;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
div.sourceCode
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { color: #008000; } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { color: #008000; font-weight: bold; } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style>
<link href="assets/all.css" media="all" rel="stylesheet">
<link href="assets/screen.css" media="screen" rel="stylesheet">
<link href="assets/screen-narrow.css" media="screen and (max-width: 50em)" rel="stylesheet">
<link href="assets/print.css" media="print" rel="stylesheet">
<noscript><link href="assets/screen-noscript.css" media="screen" rel="stylesheet"></noscript>
<link href="https://github.com/Kozea/Radicale/releases.atom" rel="alternate" title="Radicale Releases" type="application/atom+xml">
<link href="assets/icon.png" rel="icon" type="image/png">
<title>Radicale fix-1878 Documentation</title>
<meta content="Free and Open-Source CalDAV and CardDAV Server" name="description">
<script src="assets/navigation.js"></script>
<script src="assets/document-branches.js"></script>
<script src="assets/narrow-menu.js"></script>
<script src="assets/navigation-scroll-fix.js"></script>
<header>
<div class="logoContainer">
<h1>
Radicale
<span class="documentBranch">
<span>fix-1878</span>
<select style="display: none;">
<option value="superseed-1877.html">superseed-1877</option>
<option value="master.html">master</option>
<option selected value="fix-1878.html">fix-1878</option>
<option value="v3.html">v3</option>
<option value="v2.html">v2</option>
<option value="v1.html">v1</option>
</select>
</span>
</h1>
<p>Free and Open-Source CalDAV and CardDAV Server</p>
</div>
<div class="linkContainer">
<ul>
<li><a href="https://community.kozea.fr">Made with ❤ by Kozea Community</a></li>
<li><a href="https://github.com/Kozea/Radicale">Fork me on GitHub</a></li>
</ul>
</div>
</header>
<main>
<div class="navButtonContainer" style="display: none;">
<button data-name="nav-open">Contents</button>
</div>
<nav>
<div class="navContainer">
<div class="navButtonContainer" style="display: none;">
<button data-name="nav-close">Close</button>
</div>
<h2>Contents</h2>
<ul>
<li class="level2"><a href="#getting-started" id="toc-getting-started">Getting
started</a>
<ul>
<li class="level4"><a href="#about-radicale" id="toc-about-radicale">About
Radicale</a></li>
<li class="level4"><a href="#installation" id="toc-installation">Installation</a></li>
<li class="level4"><a href="#whats-new" id="toc-whats-new">What's New?</a></li>
</ul></li>
<li class="level2"><a href="#tutorials" id="toc-tutorials">Tutorials</a>
<ul>
<li class="level3"><a href="#simple-5-minute-setup" id="toc-simple-5-minute-setup">Simple 5-minute setup</a>
<ul>
<li class="level4"><a href="#linux--bsd" id="toc-linux--bsd">Linux / *BSD</a></li>
<li class="level4"><a href="#windows" id="toc-windows">Windows</a></li>
</ul></li>
<li class="level3"><a href="#basic-configuration" id="toc-basic-configuration">Basic
Configuration</a>
<ul>
<li class="level4"><a href="#authentication" id="toc-authentication">Authentication</a></li>
<li class="level4"><a href="#addresses" id="toc-addresses">Addresses</a></li>
<li class="level4"><a href="#storage" id="toc-storage">Storage</a></li>
<li class="level4"><a href="#limits" id="toc-limits">Limits</a></li>
</ul></li>
<li class="level3"><a href="#running-as-a-service" id="toc-running-as-a-service">Running as a service</a>
<ul>
<li class="level4"><a href="#linux-with-systemd-system-wide" id="toc-linux-with-systemd-system-wide">Linux with systemd
system-wide</a></li>
<li class="level4"><a href="#linux-with-systemd-as-a-user" id="toc-linux-with-systemd-as-a-user">Linux with systemd as a
user</a></li>
<li class="level4"><a href="#windows-with-nssm---the-non-sucking-service-manager" id="toc-windows-with-nssm---the-non-sucking-service-manager">Windows
with "NSSM - the Non-Sucking Service Manager"</a></li>
</ul></li>
<li class="level3"><a href="#reverse-proxy" id="toc-reverse-proxy">Reverse Proxy</a>
<ul>
<li class="level4"><a href="#manage-user-accounts-with-the-reverse-proxy" id="toc-manage-user-accounts-with-the-reverse-proxy">Manage user
accounts with the reverse proxy</a></li>
<li class="level4"><a href="#secure-connection-between-radicale-and-the-reverse-proxy" id="toc-secure-connection-between-radicale-and-the-reverse-proxy">Secure
connection between Radicale and the reverse proxy</a></li>
</ul></li>
<li class="level3"><a href="#wsgi-server" id="toc-wsgi-server">WSGI Server</a>
<ul>
<li class="level4"><a href="#manage-user-accounts-with-the-wsgi-server" id="toc-manage-user-accounts-with-the-wsgi-server">Manage user accounts
with the WSGI server</a></li>
</ul></li>
<li class="level3"><a href="#versioning-collections-with-git" id="toc-versioning-collections-with-git">Versioning collections with
Git</a></li>
</ul></li>
<li class="level2"><a href="#documentation-1" id="toc-documentation-1">Documentation</a>
<ul>
<li class="level3"><a href="#configuration" id="toc-configuration">Configuration</a>
<ul>
<li class="level4"><a href="#server" id="toc-server">[server]</a></li>
<li class="level4"><a href="#encoding" id="toc-encoding">[encoding]</a></li>
<li class="level4"><a href="#auth" id="toc-auth">[auth]</a></li>
<li class="level4"><a href="#rights" id="toc-rights">[rights]</a></li>
<li class="level4"><a href="#storage-1" id="toc-storage-1">[storage]</a></li>
<li class="level4"><a href="#web" id="toc-web">[web]</a></li>
<li class="level4"><a href="#logging" id="toc-logging">[logging]</a></li>
<li class="level4"><a href="#headers" id="toc-headers">[headers]</a></li>
<li class="level4"><a href="#hook-1" id="toc-hook-1">[hook]</a></li>
<li class="level4"><a href="#reporting" id="toc-reporting">[reporting]</a></li>
</ul></li>
</ul></li>
<li class="level2"><a href="#supported-clients" id="toc-supported-clients">Supported
Clients</a>
<ul>
<li class="level4"><a href="#davx⁵" id="toc-davx⁵">DAVx⁵</a></li>
<li class="level4"><a href="#onecalendar" id="toc-onecalendar">OneCalendar</a></li>
<li class="level4"><a href="#gnome-calendar-contacts" id="toc-gnome-calendar-contacts">GNOME Calendar, Contacts</a></li>
<li class="level4"><a href="#evolution" id="toc-evolution">Evolution</a></li>
<li class="level4"><a href="#kde-pim-applications" id="toc-kde-pim-applications">KDE
PIM Applications</a></li>
<li class="level4"><a href="#thunderbird" id="toc-thunderbird">Thunderbird</a></li>
<li class="level4"><a href="#infcloud-caldavzap-and-carddavmate" id="toc-infcloud-caldavzap-and-carddavmate">InfCloud, CalDavZAP and
CardDavMATE</a></li>
<li class="level4"><a href="#command-line" id="toc-command-line">Command line</a></li>
<li class="level3"><a href="#authorization-and-rights" id="toc-authorization-and-rights">Authorization and Rights</a></li>
<li class="level3"><a href="#storage-2" id="toc-storage-2">Storage</a>
<ul>
<li class="level4"><a href="#layout" id="toc-layout">Layout</a></li>
<li class="level4"><a href="#locking" id="toc-locking">Locking</a></li>
<li class="level4"><a href="#manually-creating-collections" id="toc-manually-creating-collections">Manually creating
collections</a></li>
</ul></li>
<li class="level3"><a href="#logging-overview" id="toc-logging-overview">Logging
overview</a></li>
<li class="level3"><a href="#architecture" id="toc-architecture">Architecture</a>
<ul>
<li class="level4"><a href="#protocol-overview" id="toc-protocol-overview">Protocol
overview</a></li>
<li class="level4"><a href="#code-architecture" id="toc-code-architecture">Code
Architecture</a></li>
</ul></li>
<li class="level3"><a href="#plugins" id="toc-plugins">Plugins</a>
<ul>
<li class="level4"><a href="#getting-started-with-plugin-development" id="toc-getting-started-with-plugin-development">Getting started with
plugin development</a></li>
<li class="level4"><a href="#authentication-plugins" id="toc-authentication-plugins">Authentication plugins</a></li>
<li class="level4"><a href="#rights-management-plugins" id="toc-rights-management-plugins">Rights management plugins</a></li>
<li class="level4"><a href="#web-plugins" id="toc-web-plugins">Web plugins</a></li>
<li class="level4"><a href="#storage-plugins" id="toc-storage-plugins">Storage
plugins</a></li>
</ul></li>
</ul></li>
<li class="level2"><a href="#contribute" id="toc-contribute">Contribute</a>
<ul>
<li class="level4"><a href="#report-bugs" id="toc-report-bugs">Report Bugs</a></li>
<li class="level4"><a href="#hack" id="toc-hack">Hack</a></li>
<li class="level4"><a href="#documentation-2" id="toc-documentation-2">Documentation</a></li>
</ul></li>
<li class="level2"><a href="#download" id="toc-download">Download</a>
<ul>
<li class="level4"><a href="#pypi" id="toc-pypi">PyPI</a></li>
<li class="level4"><a href="#git-repository" id="toc-git-repository">Git
Repository</a></li>
<li class="level4"><a href="#source-packages" id="toc-source-packages">Source
Packages</a></li>
<li class="level4"><a href="#docker" id="toc-docker">Docker</a></li>
<li class="level4"><a href="#linux-distribution-packages" id="toc-linux-distribution-packages">Linux Distribution
Packages</a></li>
</ul></li>
<li class="level2"><a href="#about" id="toc-about">About</a>
<ul>
<li class="level4"><a href="#main-goals" id="toc-main-goals">Main Goals</a></li>
<li class="level4"><a href="#what-radicale-will-never-be" id="toc-what-radicale-will-never-be">What Radicale Will Never
Be</a></li>
<li class="level4"><a href="#technical-choices" id="toc-technical-choices">Technical
Choices</a></li>
<li class="level4"><a href="#history" id="toc-history">History</a></li>
</ul></li>
</ul>
</div>
</nav>
<div class="documentContainer">
<section class="level2" id="getting-started">
<h2>Getting started <a class="headerlink" href="#getting-started">&para;</a></h2>
<section class="level4" id="about-radicale">
<h4>About Radicale <a class="headerlink" href="#about-radicale">&para;</a></h4>
<p>Radicale is a small but powerful CalDAV (calendars, to-do lists) and
CardDAV (contacts) server, that:</p>
<ul>
<li>Shares calendars and contact lists through CalDAV, CardDAV and
HTTP.</li>
<li>Supports events, todos, journal entries and business cards.</li>
<li>Works out-of-the-box, no complicated setup or configuration
required.</li>
<li>Offers flexible authentication options.</li>
<li>Can limit access by authorization.</li>
<li>Can secure connections with TLS.</li>
<li>Works with many <a href="#supported-clients">CalDAV and CardDAV
clients</a>.</li>
<li>Stores all data on the file system in a simple folder
structure.</li>
<li>Can be extended with plugins.</li>
<li>Is GPLv3-licensed free software.</li>
</ul>
</section>
<section class="level4" id="installation">
<h4>Installation <a class="headerlink" href="#installation">&para;</a></h4>
<p>Check</p>
<ul>
<li><a href="#tutorials">Tutorials</a></li>
<li><a href="#documentation-1">Documentation</a></li>
<li><a href="https://github.com/Kozea/Radicale/wiki">Wiki on
GitHub</a></li>
<li><a href="https://github.com/Kozea/Radicale/discussions">Discussions
on GitHub</a></li>
<li><a href="https://github.com/Kozea/Radicale/issues?q=is%3Aissue">Open
and already Closed Issues on GitHub</a></li>
</ul>
</section>
<section class="level4" id="whats-new">
<h4>What's New? <a class="headerlink" href="#whats-new">&para;</a></h4>
<p>Read the <a href="https://github.com/Kozea/Radicale/blob/master/CHANGELOG.md">Changelog
on GitHub</a>.</p>
</section>
</section>
<section class="level2" id="tutorials">
<h2>Tutorials <a class="headerlink" href="#tutorials">&para;</a></h2>
<section class="level3" id="simple-5-minute-setup">
<h3>Simple 5-minute setup <a class="headerlink" href="#simple-5-minute-setup">&para;</a></h3>
<p>You want to try Radicale but only have 5 minutes free in your
calendar? Let's go right now and play a bit with Radicale!</p>
<p>The server, configured with settings from this section, only binds to
localhost (i.e. it is not reachable over the network), and you can log
in with any username and password. When everything works, you may get a
local <a href="#supported-clients">client</a> and start creating
calendars and address books. If Radicale fits your needs, it may be time
for some <a href="#basic-configuration">basic configuration</a> to
support remote clients and desired authentication type.</p>
<p>Follow one of the chapters below depending on your operating
system.</p>
<section class="level4" id="linux--bsd">
<h4>Linux / *BSD <a class="headerlink" href="#linux--bsd">&para;</a></h4>
<p>Hint: instead of downloading from PyPI, look for packages provided by
your <a href="#linux-distribution-packages">distribution</a>. They
contain also startup scripts integrated into your distributions, that
allow Radicale to run daemonized.</p>
<p>First, make sure that <strong>python</strong> 3.9 or later and
<strong>pip</strong> are installed. On most distributions it should be
enough to install the package <code>python3-pip</code>.</p>
<section class="level5" id="as-normal-user">
<h5>as normal user <a class="headerlink" href="#as-normal-user">&para;</a></h5>
<p>Recommended only for testing - open a console and type:</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb1-1"><a aria-hidden="true" href="#cb1-1" tabindex="-1"></a><span class="co"># Run the following command to only install for the current user</span></span>
<span id="cb1-2"><a aria-hidden="true" href="#cb1-2" tabindex="-1"></a><span class="ex">python3</span> <span class="at">-m</span> pip install <span class="at">--user</span> <span class="at">--upgrade</span> https://github.com/Kozea/Radicale/archive/master.tar.gz</span></code></pre></div>
<p>If <em>install</em> is not working and instead
<code>error: externally-managed-environment</code> is displayed, create
and activate a virtual environment in advance.</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb2-1"><a aria-hidden="true" href="#cb2-1" tabindex="-1"></a><span class="ex">python3</span> <span class="at">-m</span> venv ~/venv</span>
<span id="cb2-2"><a aria-hidden="true" href="#cb2-2" tabindex="-1"></a><span class="bu">source</span> ~/venv/bin/activate</span></code></pre></div>
<p>and try to install with</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb3-1"><a aria-hidden="true" href="#cb3-1" tabindex="-1"></a><span class="ex">python3</span> <span class="at">-m</span> pip install <span class="at">--upgrade</span> https://github.com/Kozea/Radicale/archive/master.tar.gz</span></code></pre></div>
<p>Start the service manually, data is stored only for the current
user</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb4-1"><a aria-hidden="true" href="#cb4-1" tabindex="-1"></a><span class="co"># Start, data is stored for the current user only</span></span>
<span id="cb4-2"><a aria-hidden="true" href="#cb4-2" tabindex="-1"></a><span class="ex">python3</span> <span class="at">-m</span> radicale <span class="at">--storage-filesystem-folder</span><span class="op">=</span>~/.var/lib/radicale/collections <span class="at">--auth-type</span> none</span></code></pre></div>
</section>
<section class="level5" id="as-system-user-or-as-root">
<h5>as system user (or as root) <a class="headerlink" href="#as-system-user-or-as-root">&para;</a></h5>
<p>Alternatively, you can install and run as system user or as root (not
recommended):</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb5-1"><a aria-hidden="true" href="#cb5-1" tabindex="-1"></a><span class="co"># Run the following command as root (not recommended) or non-root system user</span></span>
<span id="cb5-2"><a aria-hidden="true" href="#cb5-2" tabindex="-1"></a><span class="co"># (the later may require --user in case dependencies are not available system-wide and/or virtual environment)</span></span>
<span id="cb5-3"><a aria-hidden="true" href="#cb5-3" tabindex="-1"></a><span class="ex">python3</span> <span class="at">-m</span> pip install <span class="at">--upgrade</span> https://github.com/Kozea/Radicale/archive/master.tar.gz</span></code></pre></div>
<p>Start the service manually, with data stored in a system folder under
<code>/var/lib/radicale/collections</code>:</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb6-1"><a aria-hidden="true" href="#cb6-1" tabindex="-1"></a><span class="co"># Start, data is stored in a system folder (requires write permissions to /var/lib/radicale/collections)</span></span>
<span id="cb6-2"><a aria-hidden="true" href="#cb6-2" tabindex="-1"></a><span class="ex">python3</span> <span class="at">-m</span> radicale <span class="at">--storage-filesystem-folder</span><span class="op">=</span>/var/lib/radicale/collections <span class="at">--auth-type</span> none</span></code></pre></div>
</section>
</section>
<section class="level4" id="windows">
<h4>Windows <a class="headerlink" href="#windows">&para;</a></h4>
<p>The first step is to install Python. Go to <a href="https://python.org">python.org</a> and download the latest version
of Python 3. Then run the installer. On the first window of the
installer, check the "Add Python to PATH" box and click on "Install
now". Wait a couple of minutes, it's done!</p>
<p>Launch a command prompt and type:</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode powershell"><code class="sourceCode powershell"><span id="cb7-1"><a aria-hidden="true" href="#cb7-1" tabindex="-1"></a>python <span class="op">-</span>m pip install <span class="op">--</span>upgrade https<span class="op">://</span>github<span class="op">.</span><span class="fu">com</span><span class="op">/</span>Kozea<span class="op">/</span>Radicale<span class="op">/</span>archive<span class="op">/</span>master<span class="op">.</span><span class="fu">tar</span><span class="op">.</span><span class="fu">gz</span></span>
<span id="cb7-2"><a aria-hidden="true" href="#cb7-2" tabindex="-1"></a>python <span class="op">-</span>m radicale <span class="op">--</span>storage<span class="op">-</span>filesystem<span class="op">-</span>folder<span class="op">=~/</span>radicale<span class="op">/</span>collections <span class="op">--</span>auth<span class="op">-</span>type none</span></code></pre></div>
<section class="level5" id="common">
<h5>Common <a class="headerlink" href="#common">&para;</a></h5>
<p>Success!!! Open <a href="http://localhost:5232">http://localhost:5232</a> in your browser!
You can log in with any username and password as no authentication is
required by example option <code>--auth-type none</code>. This is
<strong>INSECURE</strong>, see <a href="#auth">Configuration/Authentication</a> for more details.</p>
<p>Just note that default configuration for security reason binds the
server to <code>localhost</code> (IPv4: <code>127.0.0.1</code>, IPv6:
<code>::1</code>). See <a href="#addresses">Addresses</a> and <a href="#server">Configuration/Server</a> for more details.</p>
</section>
</section>
</section>
<section class="level3" id="basic-configuration">
<h3>Basic Configuration <a class="headerlink" href="#basic-configuration">&para;</a></h3>
<p>Installation instructions can be found in the <a href="#simple-5-minute-setup">simple 5-minute setup</a> tutorial.</p>
<p>Radicale tries to load configuration files from
<code>/etc/radicale/config</code> and
<code>~/.config/radicale/config</code>. Custom paths can be specified
with the <code>--config /path/to/config</code> command line argument or
the <code>RADICALE_CONFIG</code> environment variable. Multiple
configuration files can be separated by <code>:</code> (resp.
<code>;</code> on Windows). Paths that start with <code>?</code> are
optional.</p>
<p>You should create a new configuration file at the desired location.
(If the use of a configuration file is inconvenient, all options can be
passed via command line arguments.)</p>
<p>All configuration options are described in detail in the <a href="#configuration">Configuration</a> section.</p>
<section class="level4" id="authentication">
<h4>Authentication <a class="headerlink" href="#authentication">&para;</a></h4>
<p>In its default configuration since version 3.5.0, Radicale rejects
all authentication attempts by using config option
<code>type = denyall</code> (introduced with 3.2.2) as default until
explicitly configured.</p>
<p>Versions before 3.5.0 did not check usernames or passwords at all,
unless explicitly configured. If such a server is reachable over a
network, you should change this as soon as possible.</p>
<p>First a <code>users</code> file with all usernames and passwords must
be created. It can be stored in the same directory as the configuration
file.</p>
<section class="level5" id="the-secure-way">
<h5>The secure way <a class="headerlink" href="#the-secure-way">&para;</a></h5>
<p>The <code>users</code> file can be created and managed with <a href="https://httpd.apache.org/docs/current/programs/htpasswd.html">htpasswd</a>:</p>
<p>Note: some OSes or distributions contain outdated versions of
<code>htpasswd</code> (&lt; 2.4.59) without support for SHA-256 or
SHA-512 (e.g. Ubuntu LTS 22). In these cases, use
<code>htpasswd</code>'s command line option <code>-B</code> for the
<code>bcrypt</code> hash method (recommended), or stay with the insecure
(not recommended) MD5 (default) or SHA-1 (command line option
<code>-s</code>).</p>
<p>Note: support of SHA-256 and SHA-512 was introduced with 3.1.9</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb8-1"><a aria-hidden="true" href="#cb8-1" tabindex="-1"></a><span class="co"># Create a new htpasswd file with the user "user1" using SHA-512 as hash method</span></span>
<span id="cb8-2"><a aria-hidden="true" href="#cb8-2" tabindex="-1"></a><span class="ex">$</span> htpasswd <span class="at">-5</span> <span class="at">-c</span> /path/to/users user1</span>
<span id="cb8-3"><a aria-hidden="true" href="#cb8-3" tabindex="-1"></a><span class="ex">New</span> password:</span>
<span id="cb8-4"><a aria-hidden="true" href="#cb8-4" tabindex="-1"></a><span class="ex">Re-type</span> new password:</span>
<span id="cb8-5"><a aria-hidden="true" href="#cb8-5" tabindex="-1"></a><span class="co"># Add another user</span></span>
<span id="cb8-6"><a aria-hidden="true" href="#cb8-6" tabindex="-1"></a><span class="ex">$</span> htpasswd <span class="at">-5</span> /path/to/users user2</span>
<span id="cb8-7"><a aria-hidden="true" href="#cb8-7" tabindex="-1"></a><span class="ex">New</span> password:</span>
<span id="cb8-8"><a aria-hidden="true" href="#cb8-8" tabindex="-1"></a><span class="ex">Re-type</span> new password:</span></code></pre></div>
<p>Authentication can be enabled with the following configuration:</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb9-1"><a aria-hidden="true" href="#cb9-1" tabindex="-1"></a><span class="kw">[auth]</span></span>
<span id="cb9-2"><a aria-hidden="true" href="#cb9-2" tabindex="-1"></a><span class="dt">type </span><span class="ot">=</span><span class="st"> htpasswd</span></span>
<span id="cb9-3"><a aria-hidden="true" href="#cb9-3" tabindex="-1"></a><span class="dt">htpasswd_filename </span><span class="ot">=</span><span class="st"> /path/to/users</span></span>
<span id="cb9-4"><a aria-hidden="true" href="#cb9-4" tabindex="-1"></a><span class="dt">htpasswd_encryption </span><span class="ot">=</span><span class="st"> autodetect</span></span></code></pre></div>
</section>
<section class="level5" id="the-simple-but-insecure-way">
<h5>The simple but insecure way <a class="headerlink" href="#the-simple-but-insecure-way">&para;</a></h5>
<p>Create the <code>users</code> file by hand with lines containing the
username and password separated by <code>:</code>. Example:</p>
<pre class="htpasswd"><code>user1:password1
user2:password2</code></pre>
<p>Authentication can be enabled with the following configuration:</p>
<div class="sourceCode" id="cb11"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb11-1"><a aria-hidden="true" href="#cb11-1" tabindex="-1"></a><span class="kw">[auth]</span></span>
<span id="cb11-2"><a aria-hidden="true" href="#cb11-2" tabindex="-1"></a><span class="dt">type </span><span class="ot">=</span><span class="st"> htpasswd</span></span>
<span id="cb11-3"><a aria-hidden="true" href="#cb11-3" tabindex="-1"></a><span class="dt">htpasswd_filename </span><span class="ot">=</span><span class="st"> /path/to/users</span></span>
<span id="cb11-4"><a aria-hidden="true" href="#cb11-4" tabindex="-1"></a><span class="co"># encryption method used in the htpasswd file</span></span>
<span id="cb11-5"><a aria-hidden="true" href="#cb11-5" tabindex="-1"></a><span class="dt">htpasswd_encryption </span><span class="ot">=</span><span class="st"> plain</span></span></code></pre></div>
</section>
</section>
<section class="level4" id="addresses">
<h4>Addresses <a class="headerlink" href="#addresses">&para;</a></h4>
<p>The default configuration binds the server to localhost. It cannot be
reached from other computers. This can be changed with the following
configuration options (IPv4 and IPv6):</p>
<div class="sourceCode" id="cb12"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb12-1"><a aria-hidden="true" href="#cb12-1" tabindex="-1"></a><span class="kw">[server]</span></span>
<span id="cb12-2"><a aria-hidden="true" href="#cb12-2" tabindex="-1"></a><span class="dt">hosts </span><span class="ot">=</span><span class="st"> 0.0.0.0:5232, [::]:5232</span></span></code></pre></div>
</section>
<section class="level4" id="storage">
<h4>Storage <a class="headerlink" href="#storage">&para;</a></h4>
<p>Data is stored in the folder
<code>/var/lib/radicale/collections</code>. The path can be changed with
the following configuration:</p>
<div class="sourceCode" id="cb13"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb13-1"><a aria-hidden="true" href="#cb13-1" tabindex="-1"></a><span class="kw">[storage]</span></span>
<span id="cb13-2"><a aria-hidden="true" href="#cb13-2" tabindex="-1"></a><span class="dt">filesystem_folder </span><span class="ot">=</span><span class="st"> /path/to/storage</span></span></code></pre></div>
<blockquote>
<p><strong>Security:</strong> The storage folder shall not be readable
by unauthorized users. Otherwise, they can read the calendar data and
lock the storage. You can find OS dependent instructions in the <a href="#running-as-a-service">Running as a service</a> section.</p>
</blockquote>
</section>
<section class="level4" id="limits">
<h4>Limits <a class="headerlink" href="#limits">&para;</a></h4>
<p>Radicale enforces limits on the maximum number of parallel
connections, the maximum file size (important for contacts with big
photos) and the rate of incorrect authentication attempts. Connections
are terminated after a timeout. The default values should be fine for
most scenarios.</p>
<div class="sourceCode" id="cb14"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb14-1"><a aria-hidden="true" href="#cb14-1" tabindex="-1"></a><span class="kw">[server]</span></span>
<span id="cb14-2"><a aria-hidden="true" href="#cb14-2" tabindex="-1"></a><span class="dt">max_connections </span><span class="ot">=</span><span class="st"> </span><span class="dv">20</span></span>
<span id="cb14-3"><a aria-hidden="true" href="#cb14-3" tabindex="-1"></a><span class="co"># 100 Megabyte</span></span>
<span id="cb14-4"><a aria-hidden="true" href="#cb14-4" tabindex="-1"></a><span class="dt">max_content_length </span><span class="ot">=</span><span class="st"> </span><span class="dv">100000000</span></span>
<span id="cb14-5"><a aria-hidden="true" href="#cb14-5" tabindex="-1"></a><span class="co"># 30 seconds</span></span>
<span id="cb14-6"><a aria-hidden="true" href="#cb14-6" tabindex="-1"></a><span class="dt">timeout </span><span class="ot">=</span><span class="st"> </span><span class="dv">30</span></span>
<span id="cb14-7"><a aria-hidden="true" href="#cb14-7" tabindex="-1"></a></span>
<span id="cb14-8"><a aria-hidden="true" href="#cb14-8" tabindex="-1"></a><span class="kw">[auth]</span></span>
<span id="cb14-9"><a aria-hidden="true" href="#cb14-9" tabindex="-1"></a><span class="co"># Average delay after failed login attempts in seconds</span></span>
<span id="cb14-10"><a aria-hidden="true" href="#cb14-10" tabindex="-1"></a><span class="dt">delay </span><span class="ot">=</span><span class="st"> </span><span class="dv">1</span></span></code></pre></div>
</section>
</section>
<section class="level3" id="running-as-a-service">
<h3>Running as a service <a class="headerlink" href="#running-as-a-service">&para;</a></h3>
<p>The method to run Radicale as a service depends on your host
operating system. Follow one of the chapters below depending on your
operating system and requirements.</p>
<section class="level4" id="linux-with-systemd-system-wide">
<h4>Linux with systemd system-wide <a class="headerlink" href="#linux-with-systemd-system-wide">&para;</a></h4>
<p>Recommendation: check support by <a href="#linux-distribution-packages">Linux Distribution Packages</a>
instead of manual setup / initial configuration.</p>
<p>Create the <strong>radicale</strong> user and group for the Radicale
service by running (as <code>root</code>:</p>
<div class="sourceCode" id="cb15"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb15-1"><a aria-hidden="true" href="#cb15-1" tabindex="-1"></a><span class="ex">useradd</span> <span class="at">--system</span> <span class="at">--user-group</span> <span class="at">--home-dir</span> / <span class="at">--shell</span> /sbin/nologin radicale</span></code></pre></div>
<p>The storage folder must be made writable by the
<strong>radicale</strong> user by running (as <code>root</code>):</p>
<div class="sourceCode" id="cb16"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb16-1"><a aria-hidden="true" href="#cb16-1" tabindex="-1"></a><span class="fu">mkdir</span> <span class="at">-p</span> /var/lib/radicale/collections <span class="kw">&&</span> <span class="fu">chown</span> <span class="at">-R</span> radicale:radicale /var/lib/radicale/collections</span></code></pre></div>
<p>If a dedicated cache folder is configured (see option <a href="#filesystem_cache_folder">filesystem_cache_folder</a>), it also
must be made writable by <strong>radicale</strong>. To achieve that, run
(as <code>root</code>):</p>
<div class="sourceCode" id="cb17"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb17-1"><a aria-hidden="true" href="#cb17-1" tabindex="-1"></a><span class="fu">mkdir</span> <span class="at">-p</span> /var/cache/radicale <span class="kw">&&</span> <span class="fu">chown</span> <span class="at">-R</span> radicale:radicale /var/cache/radicale</span></code></pre></div>
<blockquote>
<p><strong>Security:</strong> The storage shall not be readable by
others. To make sure this is the case, run (as <code>root</code>):</p>
<div class="sourceCode" id="cb18"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb18-1"><a aria-hidden="true" href="#cb18-1" tabindex="-1"></a><span class="fu">chmod</span> <span class="at">-R</span> o= /var/lib/radicale/collections</span></code></pre></div>
</blockquote>
<p>Create the file
<code>/etc/systemd/system/radicale.service</code>:</p>
<div class="sourceCode" id="cb19"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb19-1"><a aria-hidden="true" href="#cb19-1" tabindex="-1"></a><span class="kw">[Unit]</span></span>
<span id="cb19-2"><a aria-hidden="true" href="#cb19-2" tabindex="-1"></a><span class="dt">Description</span><span class="ot">=</span><span class="st">A simple CalDAV (calendar) and CardDAV (contact) server</span></span>
<span id="cb19-3"><a aria-hidden="true" href="#cb19-3" tabindex="-1"></a><span class="dt">After</span><span class="ot">=</span><span class="st">network.target</span></span>
<span id="cb19-4"><a aria-hidden="true" href="#cb19-4" tabindex="-1"></a><span class="dt">Requires</span><span class="ot">=</span><span class="st">network.target</span></span>
<span id="cb19-5"><a aria-hidden="true" href="#cb19-5" tabindex="-1"></a></span>
<span id="cb19-6"><a aria-hidden="true" href="#cb19-6" tabindex="-1"></a><span class="kw">[Service]</span></span>
<span id="cb19-7"><a aria-hidden="true" href="#cb19-7" tabindex="-1"></a><span class="dt">ExecStart</span><span class="ot">=</span><span class="st">/usr/bin/env python3 -m radicale</span></span>
<span id="cb19-8"><a aria-hidden="true" href="#cb19-8" tabindex="-1"></a><span class="dt">Restart</span><span class="ot">=</span><span class="st">on-failure</span></span>
<span id="cb19-9"><a aria-hidden="true" href="#cb19-9" tabindex="-1"></a><span class="dt">User</span><span class="ot">=</span><span class="st">radicale</span></span>
<span id="cb19-10"><a aria-hidden="true" href="#cb19-10" tabindex="-1"></a><span class="co"># Deny other users access to the calendar data</span></span>
<span id="cb19-11"><a aria-hidden="true" href="#cb19-11" tabindex="-1"></a><span class="dt">UMask</span><span class="ot">=</span><span class="dv">0027</span></span>
<span id="cb19-12"><a aria-hidden="true" href="#cb19-12" tabindex="-1"></a><span class="co"># Optional security settings</span></span>
<span id="cb19-13"><a aria-hidden="true" href="#cb19-13" tabindex="-1"></a><span class="dt">PrivateTmp</span><span class="ot">=</span><span class="kw">true</span></span>
<span id="cb19-14"><a aria-hidden="true" href="#cb19-14" tabindex="-1"></a><span class="dt">ProtectSystem</span><span class="ot">=</span><span class="st">strict</span></span>
<span id="cb19-15"><a aria-hidden="true" href="#cb19-15" tabindex="-1"></a><span class="dt">ProtectHome</span><span class="ot">=</span><span class="kw">true</span></span>
<span id="cb19-16"><a aria-hidden="true" href="#cb19-16" tabindex="-1"></a><span class="dt">PrivateDevices</span><span class="ot">=</span><span class="kw">true</span></span>
<span id="cb19-17"><a aria-hidden="true" href="#cb19-17" tabindex="-1"></a><span class="dt">ProtectKernelTunables</span><span class="ot">=</span><span class="kw">true</span></span>
<span id="cb19-18"><a aria-hidden="true" href="#cb19-18" tabindex="-1"></a><span class="dt">ProtectKernelModules</span><span class="ot">=</span><span class="kw">true</span></span>
<span id="cb19-19"><a aria-hidden="true" href="#cb19-19" tabindex="-1"></a><span class="dt">ProtectControlGroups</span><span class="ot">=</span><span class="kw">true</span></span>
<span id="cb19-20"><a aria-hidden="true" href="#cb19-20" tabindex="-1"></a><span class="dt">NoNewPrivileges</span><span class="ot">=</span><span class="kw">true</span></span>
<span id="cb19-21"><a aria-hidden="true" href="#cb19-21" tabindex="-1"></a><span class="dt">ReadWritePaths</span><span class="ot">=</span><span class="st">/var/lib/radicale/</span></span>
<span id="cb19-22"><a aria-hidden="true" href="#cb19-22" tabindex="-1"></a><span class="co"># Replace with following in case dedicated cache folder should be used</span></span>
<span id="cb19-23"><a aria-hidden="true" href="#cb19-23" tabindex="-1"></a><span class="co">#ReadWritePaths=/var/lib/radicale/ /var/cache/radicale/</span></span>
<span id="cb19-24"><a aria-hidden="true" href="#cb19-24" tabindex="-1"></a></span>
<span id="cb19-25"><a aria-hidden="true" href="#cb19-25" tabindex="-1"></a><span class="kw">[Install]</span></span>
<span id="cb19-26"><a aria-hidden="true" href="#cb19-26" tabindex="-1"></a><span class="dt">WantedBy</span><span class="ot">=</span><span class="st">multi-user.target</span></span></code></pre></div>
<p>In this system-wide implementation, Radicale will load the
configuration from the file <code>/etc/radicale/config</code>.</p>
<p>To enable and manage the service run:</p>
<div class="sourceCode" id="cb20"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb20-1"><a aria-hidden="true" href="#cb20-1" tabindex="-1"></a><span class="co"># Enable the service</span></span>
<span id="cb20-2"><a aria-hidden="true" href="#cb20-2" tabindex="-1"></a><span class="ex">$</span> systemctl enable radicale</span>
<span id="cb20-3"><a aria-hidden="true" href="#cb20-3" tabindex="-1"></a><span class="co"># Start the service</span></span>
<span id="cb20-4"><a aria-hidden="true" href="#cb20-4" tabindex="-1"></a><span class="ex">$</span> systemctl start radicale</span>
<span id="cb20-5"><a aria-hidden="true" href="#cb20-5" tabindex="-1"></a><span class="co"># Check the status of the service</span></span>
<span id="cb20-6"><a aria-hidden="true" href="#cb20-6" tabindex="-1"></a><span class="ex">$</span> systemctl status radicale</span>
<span id="cb20-7"><a aria-hidden="true" href="#cb20-7" tabindex="-1"></a><span class="co"># View all log messages</span></span>
<span id="cb20-8"><a aria-hidden="true" href="#cb20-8" tabindex="-1"></a><span class="ex">$</span> journalctl <span class="at">--unit</span> radicale.service</span></code></pre></div>
</section>
<section class="level4" id="linux-with-systemd-as-a-user">
<h4>Linux with systemd as a user <a class="headerlink" href="#linux-with-systemd-as-a-user">&para;</a></h4>
<p>Create the file
<code>~/.config/systemd/user/radicale.service</code>:</p>
<div class="sourceCode" id="cb21"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb21-1"><a aria-hidden="true" href="#cb21-1" tabindex="-1"></a><span class="kw">[Unit]</span></span>
<span id="cb21-2"><a aria-hidden="true" href="#cb21-2" tabindex="-1"></a><span class="dt">Description</span><span class="ot">=</span><span class="st">A simple CalDAV (calendar) and CardDAV (contact) server</span></span>
<span id="cb21-3"><a aria-hidden="true" href="#cb21-3" tabindex="-1"></a></span>
<span id="cb21-4"><a aria-hidden="true" href="#cb21-4" tabindex="-1"></a><span class="kw">[Service]</span></span>
<span id="cb21-5"><a aria-hidden="true" href="#cb21-5" tabindex="-1"></a><span class="dt">ExecStart</span><span class="ot">=</span><span class="st">/usr/bin/env python3 -m radicale</span></span>
<span id="cb21-6"><a aria-hidden="true" href="#cb21-6" tabindex="-1"></a><span class="dt">Restart</span><span class="ot">=</span><span class="st">on-failure</span></span>
<span id="cb21-7"><a aria-hidden="true" href="#cb21-7" tabindex="-1"></a></span>
<span id="cb21-8"><a aria-hidden="true" href="#cb21-8" tabindex="-1"></a><span class="kw">[Install]</span></span>
<span id="cb21-9"><a aria-hidden="true" href="#cb21-9" tabindex="-1"></a><span class="dt">WantedBy</span><span class="ot">=</span><span class="st">default.target</span></span></code></pre></div>
<p>In this user-specific configuration, Radicale will load the
configuration from the file <code>~/.config/radicale/config</code>. You
should set the configuration option <code>filesystem_folder</code> in
the <code>storage</code> section to something like
<code>~/.var/lib/radicale/collections</code>.</p>
<p>To enable and manage the service run:</p>
<div class="sourceCode" id="cb22"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb22-1"><a aria-hidden="true" href="#cb22-1" tabindex="-1"></a><span class="co"># Enable the service</span></span>
<span id="cb22-2"><a aria-hidden="true" href="#cb22-2" tabindex="-1"></a><span class="ex">$</span> systemctl <span class="at">--user</span> enable radicale</span>
<span id="cb22-3"><a aria-hidden="true" href="#cb22-3" tabindex="-1"></a><span class="co"># Start the service</span></span>
<span id="cb22-4"><a aria-hidden="true" href="#cb22-4" tabindex="-1"></a><span class="ex">$</span> systemctl <span class="at">--user</span> start radicale</span>
<span id="cb22-5"><a aria-hidden="true" href="#cb22-5" tabindex="-1"></a><span class="co"># Check the status of the service</span></span>
<span id="cb22-6"><a aria-hidden="true" href="#cb22-6" tabindex="-1"></a><span class="ex">$</span> systemctl <span class="at">--user</span> status radicale</span>
<span id="cb22-7"><a aria-hidden="true" href="#cb22-7" tabindex="-1"></a><span class="co"># View all log messages</span></span>
<span id="cb22-8"><a aria-hidden="true" href="#cb22-8" tabindex="-1"></a><span class="ex">$</span> journalctl <span class="at">--user</span> <span class="at">--unit</span> radicale.service</span></code></pre></div>
</section>
<section class="level4" id="windows-with-nssm---the-non-sucking-service-manager">
<h4>Windows with "NSSM - the Non-Sucking Service Manager" <a class="headerlink" href="#windows-with-nssm---the-non-sucking-service-manager">&para;</a></h4>
<p>First install <a href="https://nssm.cc/">NSSM</a> and start
<code>nssm install</code> in a command prompt. Apply the following
configuration:</p>
<ul>
<li>Service name: <code>Radicale</code></li>
<li>Application
<ul>
<li>Path: <code>C:\Path\To\Python\python.exe</code></li>
<li>Arguments: <code>--config C:\Path\To\Config</code></li>
</ul></li>
<li>I/O redirection
<ul>
<li>Error: <code>C:\Path\To\Radicale.log</code></li>
</ul></li>
</ul>
<blockquote>
<p><strong>Security:</strong> Be aware that the service runs in the
local system account, you might want to change this. Managing user
accounts is beyond the scope of this manual. Also, make sure that the
storage folder and log file is not readable by unauthorized users.</p>
</blockquote>
<p>The log file might grow very big over time, you can configure file
rotation in <strong>NSSM</strong> to prevent this.</p>
<p>The service is configured to start automatically when the computer
starts. To start the service manually open <strong>Services</strong> in
<strong>Computer Management</strong> and start the
<strong>Radicale</strong> service.</p>
</section>
</section>
<section class="level3" id="reverse-proxy">
<h3>Reverse Proxy <a class="headerlink" href="#reverse-proxy">&para;</a></h3>
<p>When a reverse proxy is used, and Radicale should be made available
at a path below the root (such as <code>/radicale/</code>), then this
path must be provided via the <code>X-Script-Name</code> header (without
a trailing <code>/</code>). The proxy must remove the location from the
URL path that is forwarded to Radicale. If Radicale should be made
available at the root of the web server (in the nginx case using
<code>location /</code>), then the setting of the
<code>X-Script-Name</code> header should be removed from the example
below.</p>
<p>Example <strong>nginx</strong> configuration extension:</p>
<p>See also for latest examples: <a href="https://github.com/Kozea/Radicale/tree/master/contrib/nginx/">https://github.com/Kozea/Radicale/tree/master/contrib/nginx/</a></p>
<pre class="nginx"><code>location /radicale/ { # The trailing / is important!
proxy_pass http://localhost:5232;
proxy_set_header X-Script-Name /radicale;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_pass_header Authorization;
}</code></pre>
<p>Example <strong>Caddy</strong> configuration extension:</p>
<p>See also for latest examples: <a href="https://github.com/Kozea/Radicale/tree/master/contrib/caddy/">https://github.com/Kozea/Radicale/tree/master/contrib/caddy/</a></p>
<pre><code>handle_path /radicale/* {
uri strip_prefix /radicale
reverse_proxy localhost:5232 {
}
}</code></pre>
<p>Example <strong>Apache</strong> configuration extension:</p>
<p>See also for latest examples: <a href="https://github.com/Kozea/Radicale/tree/master/contrib/apache/">https://github.com/Kozea/Radicale/tree/master/contrib/apache/</a></p>
<div class="sourceCode" id="cb25"><pre class="sourceCode apache"><code class="sourceCode apache"><span id="cb25-1"><a aria-hidden="true" href="#cb25-1" tabindex="-1"></a><span class="ex">RewriteEngine</span><span class="ch"> </span><span class="kw">On</span></span>
<span id="cb25-2"><a aria-hidden="true" href="#cb25-2" tabindex="-1"></a>RewriteRule<span class="st"> ^/radicale$ /radicale/ [R,L]</span></span>
<span id="cb25-3"><a aria-hidden="true" href="#cb25-3" tabindex="-1"></a></span>
<span id="cb25-4"><a aria-hidden="true" href="#cb25-4" tabindex="-1"></a><span class="fu">&lt;Location</span><span class="at"> "/radicale/"</span><span class="fu">&gt;</span></span>
<span id="cb25-5"><a aria-hidden="true" href="#cb25-5" tabindex="-1"></a> ProxyPass<span class="st"> http://localhost:5232/ retry=0</span></span>
<span id="cb25-6"><a aria-hidden="true" href="#cb25-6" tabindex="-1"></a> ProxyPassReverse<span class="st"> http://localhost:5232/</span></span>
<span id="cb25-7"><a aria-hidden="true" href="#cb25-7" tabindex="-1"></a> RequestHeader<span class="st"> set X-Script-Name /radicale</span></span>
<span id="cb25-8"><a aria-hidden="true" href="#cb25-8" tabindex="-1"></a> RequestHeader<span class="st"> set X-Forwarded-Port "%{SERVER_PORT}s"</span></span>
<span id="cb25-9"><a aria-hidden="true" href="#cb25-9" tabindex="-1"></a> RequestHeader<span class="st"> set X-Forwarded-Proto expr=%{REQUEST_SCHEME}</span></span>
<span id="cb25-10"><a aria-hidden="true" href="#cb25-10" tabindex="-1"></a> <span class="fu">&lt;IfVersion</span><span class="at"> </span><span class="fu">&gt;</span><span class="er">= 2.4.40&gt;</span></span>
<span id="cb25-11"><a aria-hidden="true" href="#cb25-11" tabindex="-1"></a> Proxy100Continue Off</span>
<span id="cb25-12"><a aria-hidden="true" href="#cb25-12" tabindex="-1"></a> <span class="fu">&lt;/IfVersion&gt;</span></span>
<span id="cb25-13"><a aria-hidden="true" href="#cb25-13" tabindex="-1"></a><span class="fu">&lt;/Location&gt;</span></span></code></pre></div>
<p>Example <strong>Apache .htaccess</strong> configuration:</p>
<div class="sourceCode" id="cb26"><pre class="sourceCode apache"><code class="sourceCode apache"><span id="cb26-1"><a aria-hidden="true" href="#cb26-1" tabindex="-1"></a>DirectoryIndex<span class="st"> disabled</span></span>
<span id="cb26-2"><a aria-hidden="true" href="#cb26-2" tabindex="-1"></a><span class="ex">RewriteEngine</span><span class="ch"> </span><span class="kw">On</span></span>
<span id="cb26-3"><a aria-hidden="true" href="#cb26-3" tabindex="-1"></a>RewriteRule<span class="st"> ^(.*)$ http://localhost:5232/$1 [P,L]</span></span>
<span id="cb26-4"><a aria-hidden="true" href="#cb26-4" tabindex="-1"></a></span>
<span id="cb26-5"><a aria-hidden="true" href="#cb26-5" tabindex="-1"></a><span class="co"># Set to directory of .htaccess file:</span></span>
<span id="cb26-6"><a aria-hidden="true" href="#cb26-6" tabindex="-1"></a>RequestHeader<span class="st"> set X-Script-Name /radicale</span></span>
<span id="cb26-7"><a aria-hidden="true" href="#cb26-7" tabindex="-1"></a>RequestHeader<span class="st"> set X-Forwarded-Port "%{SERVER_PORT}s"</span></span>
<span id="cb26-8"><a aria-hidden="true" href="#cb26-8" tabindex="-1"></a>RequestHeader<span class="st"> unset X-Forwarded-Proto</span></span>
<span id="cb26-9"><a aria-hidden="true" href="#cb26-9" tabindex="-1"></a><span class="fu">&lt;If</span><span class="at"> "%{HTTPS} =~ /on/"</span><span class="fu">&gt;</span></span>
<span id="cb26-10"><a aria-hidden="true" href="#cb26-10" tabindex="-1"></a>RequestHeader<span class="st"> set X-Forwarded-Proto "https"</span></span>
<span id="cb26-11"><a aria-hidden="true" href="#cb26-11" tabindex="-1"></a><span class="fu">&lt;/If&gt;</span></span></code></pre></div>
<p>Example <strong>lighttpd</strong> configuration:</p>
<pre class="lighttpd"><code>server.modules += ( "mod_proxy" , "mod_setenv", "mod_rewrite" )
$HTTP["url"] =~ "^/radicale/" {
proxy.server = ( "" =&gt; (( "host" =&gt; "127.0.0.1", "port" =&gt; "5232" )) )
proxy.header = ( "map-urlpath" =&gt; ( "/radicale/" =&gt; "/" ))
setenv.add-request-header = (
"X-Script-Name" =&gt; "/radicale",
"Script-Name" =&gt; "/radicale",
)
url.rewrite-once = ( "^/radicale/radicale/(.*)" =&gt; "/radicale/$1" )
}</code></pre>
<p>Be reminded that Radicale's default configuration enforces limits on
the maximum number of parallel connections, the maximum file size and
the rate of incorrect authentication attempts. Connections are
terminated after a timeout.</p>
<section class="level4" id="manage-user-accounts-with-the-reverse-proxy">
<h4>Manage user accounts with the reverse proxy <a class="headerlink" href="#manage-user-accounts-with-the-reverse-proxy">&para;</a></h4>
<p>Set the configuration option <code>type</code> in the
<code>auth</code> section to <code>http_x_remote_user</code>. Radicale
uses the username provided in the <code>X-Remote-User</code> HTTP header
and disables its internal HTTP authentication.</p>
<p>Example <strong>nginx</strong> configuration:</p>
<pre class="nginx"><code>location /radicale/ {
proxy_pass http://localhost:5232/;
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;
auth_basic "Radicale - Password Required";
auth_basic_user_file /etc/nginx/htpasswd;
}</code></pre>
<p>Example <strong>Caddy</strong> configuration:</p>
<pre><code>handle_path /radicale/* {
uri strip_prefix /radicale
basicauth {
USER HASH
}
reverse_proxy localhost:5232 {
header_up X-Script-Name /radicale
header_up X-remote-user {http.auth.user.id}
}
}</code></pre>
<p>Example <strong>Apache</strong> configuration:</p>
<div class="sourceCode" id="cb30"><pre class="sourceCode apache"><code class="sourceCode apache"><span id="cb30-1"><a aria-hidden="true" href="#cb30-1" tabindex="-1"></a><span class="ex">RewriteEngine</span><span class="ch"> </span><span class="kw">On</span></span>
<span id="cb30-2"><a aria-hidden="true" href="#cb30-2" tabindex="-1"></a>RewriteRule<span class="st"> ^/radicale$ /radicale/ [R,L]</span></span>
<span id="cb30-3"><a aria-hidden="true" href="#cb30-3" tabindex="-1"></a></span>
<span id="cb30-4"><a aria-hidden="true" href="#cb30-4" tabindex="-1"></a><span class="fu">&lt;Location</span><span class="at"> "/radicale/"</span><span class="fu">&gt;</span></span>
<span id="cb30-5"><a aria-hidden="true" href="#cb30-5" tabindex="-1"></a> <span class="ex">AuthType</span><span class="ch"> </span><span class="kw">Basic</span></span>
<span id="cb30-6"><a aria-hidden="true" href="#cb30-6" tabindex="-1"></a> AuthName<span class="st"> "Radicale - Password Required"</span></span>
<span id="cb30-7"><a aria-hidden="true" href="#cb30-7" tabindex="-1"></a> AuthUserFile<span class="st"> "/etc/radicale/htpasswd"</span></span>
<span id="cb30-8"><a aria-hidden="true" href="#cb30-8" tabindex="-1"></a> Require<span class="st"> valid-user</span></span>
<span id="cb30-9"><a aria-hidden="true" href="#cb30-9" tabindex="-1"></a></span>
<span id="cb30-10"><a aria-hidden="true" href="#cb30-10" tabindex="-1"></a> ProxyPass<span class="st"> http://localhost:5232/ retry=0</span></span>
<span id="cb30-11"><a aria-hidden="true" href="#cb30-11" tabindex="-1"></a> ProxyPassReverse<span class="st"> http://localhost:5232/</span></span>
<span id="cb30-12"><a aria-hidden="true" href="#cb30-12" tabindex="-1"></a> <span class="fu">&lt;IfVersion</span><span class="at"> </span><span class="fu">&gt;</span><span class="er">= 2.4.40&gt;</span></span>
<span id="cb30-13"><a aria-hidden="true" href="#cb30-13" tabindex="-1"></a> Proxy100Continue Off</span>
<span id="cb30-14"><a aria-hidden="true" href="#cb30-14" tabindex="-1"></a> <span class="fu">&lt;/IfVersion&gt;</span></span>
<span id="cb30-15"><a aria-hidden="true" href="#cb30-15" tabindex="-1"></a> RequestHeader<span class="st"> set X-Script-Name /radicale</span></span>
<span id="cb30-16"><a aria-hidden="true" href="#cb30-16" tabindex="-1"></a> RequestHeader<span class="st"> set X-Remote-User expr=%{REMOTE_USER}</span></span>
<span id="cb30-17"><a aria-hidden="true" href="#cb30-17" tabindex="-1"></a><span class="fu">&lt;/Location&gt;</span></span></code></pre></div>
<p>Example <strong>Apache .htaccess</strong> configuration:</p>
<div class="sourceCode" id="cb31"><pre class="sourceCode apache"><code class="sourceCode apache"><span id="cb31-1"><a aria-hidden="true" href="#cb31-1" tabindex="-1"></a>DirectoryIndex<span class="st"> disabled</span></span>
<span id="cb31-2"><a aria-hidden="true" href="#cb31-2" tabindex="-1"></a><span class="ex">RewriteEngine</span><span class="ch"> </span><span class="kw">On</span></span>
<span id="cb31-3"><a aria-hidden="true" href="#cb31-3" tabindex="-1"></a>RewriteRule<span class="st"> ^(.*)$ http://localhost:5232/$1 [P,L]</span></span>
<span id="cb31-4"><a aria-hidden="true" href="#cb31-4" tabindex="-1"></a></span>
<span id="cb31-5"><a aria-hidden="true" href="#cb31-5" tabindex="-1"></a><span class="ex">AuthType</span><span class="ch"> </span><span class="kw">Basic</span></span>
<span id="cb31-6"><a aria-hidden="true" href="#cb31-6" tabindex="-1"></a>AuthName<span class="st"> "Radicale - Password Required"</span></span>
<span id="cb31-7"><a aria-hidden="true" href="#cb31-7" tabindex="-1"></a>AuthUserFile<span class="st"> "/etc/radicale/htpasswd"</span></span>
<span id="cb31-8"><a aria-hidden="true" href="#cb31-8" tabindex="-1"></a>Require<span class="st"> valid-user</span></span>
<span id="cb31-9"><a aria-hidden="true" href="#cb31-9" tabindex="-1"></a></span>
<span id="cb31-10"><a aria-hidden="true" href="#cb31-10" tabindex="-1"></a><span class="co"># Set to directory of .htaccess file:</span></span>
<span id="cb31-11"><a aria-hidden="true" href="#cb31-11" tabindex="-1"></a>RequestHeader<span class="st"> set X-Script-Name /radicale</span></span>
<span id="cb31-12"><a aria-hidden="true" href="#cb31-12" tabindex="-1"></a>RequestHeader<span class="st"> set X-Remote-User expr=%{REMOTE_USER}</span></span></code></pre></div>
<blockquote>
<p><strong>Security:</strong> Untrusted clients should not be able to
access the Radicale server directly. Otherwise, they can authenticate as
any user by simply setting related HTTP header. This can be prevented by
listening to the loopback interface only or local firewall rules.</p>
</blockquote>
</section>
<section class="level4" id="secure-connection-between-radicale-and-the-reverse-proxy">
<h4>Secure connection between Radicale and the reverse proxy <a class="headerlink" href="#secure-connection-between-radicale-and-the-reverse-proxy">&para;</a></h4>
<p>SSL certificates can be used to encrypt and authenticate the
connection between Radicale and the reverse proxy. First you need to
generate a certificate for Radicale and a certificate for the reverse
proxy. The following commands generate self-signed certificates. You
will be asked to enter additional information about the certificate,
these values do not really matter, and you can keep the defaults.</p>
<div class="sourceCode" id="cb32"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb32-1"><a aria-hidden="true" href="#cb32-1" tabindex="-1"></a><span class="ex">openssl</span> req <span class="at">-x509</span> <span class="at">-newkey</span> rsa:4096 <span class="at">-keyout</span> server_key.pem <span class="at">-out</span> server_cert.pem <span class="dt">\</span></span>
<span id="cb32-2"><a aria-hidden="true" href="#cb32-2" tabindex="-1"></a> <span class="at">-nodes</span> <span class="at">-days</span> 9999</span>
<span id="cb32-3"><a aria-hidden="true" href="#cb32-3" tabindex="-1"></a><span class="ex">openssl</span> req <span class="at">-x509</span> <span class="at">-newkey</span> rsa:4096 <span class="at">-keyout</span> client_key.pem <span class="at">-out</span> client_cert.pem <span class="dt">\</span></span>
<span id="cb32-4"><a aria-hidden="true" href="#cb32-4" tabindex="-1"></a> <span class="at">-nodes</span> <span class="at">-days</span> 9999</span></code></pre></div>
<p>Use the following configuration for Radicale:</p>
<div class="sourceCode" id="cb33"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb33-1"><a aria-hidden="true" href="#cb33-1" tabindex="-1"></a><span class="kw">[server]</span></span>
<span id="cb33-2"><a aria-hidden="true" href="#cb33-2" tabindex="-1"></a><span class="dt">ssl </span><span class="ot">=</span><span class="st"> </span><span class="kw">True</span></span>
<span id="cb33-3"><a aria-hidden="true" href="#cb33-3" tabindex="-1"></a><span class="dt">certificate </span><span class="ot">=</span><span class="st"> /path/to/server_cert.pem</span></span>
<span id="cb33-4"><a aria-hidden="true" href="#cb33-4" tabindex="-1"></a><span class="dt">key </span><span class="ot">=</span><span class="st"> /path/to/server_key.pem</span></span>
<span id="cb33-5"><a aria-hidden="true" href="#cb33-5" tabindex="-1"></a><span class="dt">certificate_authority </span><span class="ot">=</span><span class="st"> /path/to/client_cert.pem</span></span></code></pre></div>
<p>If you are using the Let's Encrypt Certbot, the configuration should
look similar to this:</p>
<div class="sourceCode" id="cb34"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb34-1"><a aria-hidden="true" href="#cb34-1" tabindex="-1"></a><span class="kw">[server]</span></span>
<span id="cb34-2"><a aria-hidden="true" href="#cb34-2" tabindex="-1"></a><span class="dt">ssl </span><span class="ot">=</span><span class="st"> </span><span class="kw">True</span></span>
<span id="cb34-3"><a aria-hidden="true" href="#cb34-3" tabindex="-1"></a><span class="dt">certificate </span><span class="ot">=</span><span class="st"> /etc/letsencrypt/live/{Your Domain}/fullchain.pem</span></span>
<span id="cb34-4"><a aria-hidden="true" href="#cb34-4" tabindex="-1"></a><span class="dt">key </span><span class="ot">=</span><span class="st"> /etc/letsencrypt/live/{Your Domain}/privkey.pem</span></span></code></pre></div>
<p>Example <strong>nginx</strong> configuration:</p>
<pre class="nginx"><code>location /radicale/ {
proxy_pass https://localhost:5232/;
...
# Place the files somewhere nginx is allowed to access (e.g. /etc/nginx/...).
proxy_ssl_certificate /path/to/client_cert.pem;
proxy_ssl_certificate_key /path/to/client_key.pem;
}</code></pre>
</section>
</section>
<section class="level3" id="wsgi-server">
<h3>WSGI Server <a class="headerlink" href="#wsgi-server">&para;</a></h3>
<p>Radicale is compatible with the WSGI specification.</p>
<p>A configuration file can be set with the <code>RADICALE_CONFIG</code>
environment variable, otherwise no configuration file is loaded and the
default configuration is used.</p>
<p>Example <strong>uWSGI</strong> configuration:</p>
<div class="sourceCode" id="cb36"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb36-1"><a aria-hidden="true" href="#cb36-1" tabindex="-1"></a><span class="kw">[uwsgi]</span></span>
<span id="cb36-2"><a aria-hidden="true" href="#cb36-2" tabindex="-1"></a><span class="dt">http-socket </span><span class="ot">=</span><span class="st"> 127.0.0.1:5232</span></span>
<span id="cb36-3"><a aria-hidden="true" href="#cb36-3" tabindex="-1"></a><span class="dt">processes </span><span class="ot">=</span><span class="st"> </span><span class="dv">8</span></span>
<span id="cb36-4"><a aria-hidden="true" href="#cb36-4" tabindex="-1"></a><span class="dt">plugin </span><span class="ot">=</span><span class="st"> python3</span></span>
<span id="cb36-5"><a aria-hidden="true" href="#cb36-5" tabindex="-1"></a><span class="dt">module </span><span class="ot">=</span><span class="st"> radicale</span></span>
<span id="cb36-6"><a aria-hidden="true" href="#cb36-6" tabindex="-1"></a><span class="dt">env </span><span class="ot">=</span><span class="st"> RADICALE_CONFIG=/etc/radicale/config</span></span></code></pre></div>
<p>Example <strong>Gunicorn</strong> configuration:</p>
<div class="sourceCode" id="cb37"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb37-1"><a aria-hidden="true" href="#cb37-1" tabindex="-1"></a><span class="ex">gunicorn</span> <span class="at">--bind</span> <span class="st">'127.0.0.1:5232'</span> <span class="at">--env</span> <span class="st">'RADICALE_CONFIG=/etc/radicale/config'</span> <span class="dt">\</span></span>
<span id="cb37-2"><a aria-hidden="true" href="#cb37-2" tabindex="-1"></a> <span class="at">--workers</span> 8 radicale</span></code></pre></div>
<section class="level4" id="manage-user-accounts-with-the-wsgi-server">
<h4>Manage user accounts with the WSGI server <a class="headerlink" href="#manage-user-accounts-with-the-wsgi-server">&para;</a></h4>
<p>Set the configuration option <code>type</code> in the
<code>auth</code> section to <code>remote_user</code>. This way Radicale
uses the username provided by the WSGI server and disables its internal
authentication over HTTP.</p>
</section>
</section>
<section class="level3" id="versioning-collections-with-git">
<h3>Versioning collections with Git <a class="headerlink" href="#versioning-collections-with-git">&para;</a></h3>
<p>This tutorial describes how to keep track of all changes to calendars
and address books with <strong>git</strong> (or any other version
control system).</p>
<p>The repository must be initialized in the collection base directory
of the user running <code>radicale</code> daemon.</p>
<div class="sourceCode" id="cb38"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb38-1"><a aria-hidden="true" href="#cb38-1" tabindex="-1"></a><span class="co">## assuming "radicale" user is starting "radicale" service</span></span>
<span id="cb38-2"><a aria-hidden="true" href="#cb38-2" tabindex="-1"></a><span class="co"># change to user "radicale"</span></span>
<span id="cb38-3"><a aria-hidden="true" href="#cb38-3" tabindex="-1"></a><span class="fu">su</span> <span class="at">-l</span> <span class="at">-s</span> /bin/bash radicale</span>
<span id="cb38-4"><a aria-hidden="true" href="#cb38-4" tabindex="-1"></a></span>
<span id="cb38-5"><a aria-hidden="true" href="#cb38-5" tabindex="-1"></a><span class="co"># change to collection base directory defined in [storage] -&gt; filesystem_folder</span></span>
<span id="cb38-6"><a aria-hidden="true" href="#cb38-6" tabindex="-1"></a><span class="co"># assumed here /var/lib/radicale/collections</span></span>
<span id="cb38-7"><a aria-hidden="true" href="#cb38-7" tabindex="-1"></a><span class="bu">cd</span> /var/lib/radicale/collections</span>
<span id="cb38-8"><a aria-hidden="true" href="#cb38-8" tabindex="-1"></a></span>
<span id="cb38-9"><a aria-hidden="true" href="#cb38-9" tabindex="-1"></a><span class="co"># initialize git repository</span></span>
<span id="cb38-10"><a aria-hidden="true" href="#cb38-10" tabindex="-1"></a><span class="fu">git</span> init</span>
<span id="cb38-11"><a aria-hidden="true" href="#cb38-11" tabindex="-1"></a></span>
<span id="cb38-12"><a aria-hidden="true" href="#cb38-12" tabindex="-1"></a><span class="co"># set user and e-mail, here minimum example</span></span>
<span id="cb38-13"><a aria-hidden="true" href="#cb38-13" tabindex="-1"></a><span class="fu">git</span> config user.name <span class="st">"</span><span class="va">$USER</span><span class="st">"</span></span>
<span id="cb38-14"><a aria-hidden="true" href="#cb38-14" tabindex="-1"></a><span class="fu">git</span> config user.email <span class="st">"</span><span class="va">$USER</span><span class="st">@</span><span class="va">$HOSTNAME</span><span class="st">"</span></span>
<span id="cb38-15"><a aria-hidden="true" href="#cb38-15" tabindex="-1"></a></span>
<span id="cb38-16"><a aria-hidden="true" href="#cb38-16" tabindex="-1"></a><span class="co"># define ignore of cache/lock/tmp files</span></span>
<span id="cb38-17"><a aria-hidden="true" href="#cb38-17" tabindex="-1"></a><span class="fu">cat</span> <span class="op">&lt;&lt;'END'</span> <span class="op">&gt;</span>.gitignore</span>
<span id="cb38-18"><a aria-hidden="true" href="#cb38-18" tabindex="-1"></a><span class="st">.Radicale.cache</span></span>
<span id="cb38-19"><a aria-hidden="true" href="#cb38-19" tabindex="-1"></a><span class="st">.Radicale.lock</span></span>
<span id="cb38-20"><a aria-hidden="true" href="#cb38-20" tabindex="-1"></a><span class="st">.Radicale.tmp-*</span></span>
<span id="cb38-21"><a aria-hidden="true" href="#cb38-21" tabindex="-1"></a><span class="op">END</span></span></code></pre></div>
<p>The configuration option <code>hook</code> in the
<code>storage</code> section must be set to the following command:</p>
<div class="sourceCode" id="cb39"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb39-1"><a aria-hidden="true" href="#cb39-1" tabindex="-1"></a><span class="fu">git</span> add <span class="at">-A</span> <span class="kw">&&</span> <span class="kw">(</span><span class="fu">git</span> diff <span class="at">--cached</span> <span class="at">--quiet</span> <span class="kw">||</span> <span class="fu">git</span> commit <span class="at">-m</span> <span class="st">"Changes by </span><span class="dt">\"</span><span class="st">%(user)s</span><span class="dt">\"</span><span class="st">"</span><span class="kw">)</span></span></code></pre></div>
<p>The command gets executed after every change to the storage and
commits the changes into the <strong>git</strong> repository.</p>
<p>Log of <code>git</code> can be investigated using</p>
<div class="sourceCode" id="cb40"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb40-1"><a aria-hidden="true" href="#cb40-1" tabindex="-1"></a><span class="fu">su</span> <span class="at">-l</span> <span class="at">-s</span> /bin/bash radicale</span>
<span id="cb40-2"><a aria-hidden="true" href="#cb40-2" tabindex="-1"></a><span class="bu">cd</span> /var/lib/radicale/collections</span>
<span id="cb40-3"><a aria-hidden="true" href="#cb40-3" tabindex="-1"></a><span class="fu">git</span> log</span></code></pre></div>
<p>In case of problems, make sure you run radicale with
<code>--debug</code> switch and inspect the log output. For more
information, please visit <a href="#logging-overview">section on
logging</a>.</p>
<p>Reason for problems can be</p>
<ul>
<li>SELinux status -&gt; check related audit log</li>
<li>problematic file/directory permissions</li>
<li>command is not fond or cannot be executed or argument problem</li>
</ul>
</section>
</section>
<section class="level2" id="documentation-1">
<h2>Documentation <a class="headerlink" href="#documentation-1">&para;</a></h2>
<section class="level3" id="configuration">
<h3>Configuration <a class="headerlink" href="#configuration">&para;</a></h3>
<p>Radicale can be configured with a configuration file or with command
line arguments.</p>
<p>Configuration files have INI-style syntax comprising key-value pairs
grouped into sections with section headers enclosed in brackets.</p>
<p>An example configuration file looks like:</p>
<div class="sourceCode" id="cb41"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb41-1"><a aria-hidden="true" href="#cb41-1" tabindex="-1"></a><span class="kw">[server]</span></span>
<span id="cb41-2"><a aria-hidden="true" href="#cb41-2" tabindex="-1"></a><span class="co"># Bind all addresses</span></span>
<span id="cb41-3"><a aria-hidden="true" href="#cb41-3" tabindex="-1"></a><span class="dt">hosts </span><span class="ot">=</span><span class="st"> 0.0.0.0:5232, [::]:5232</span></span>
<span id="cb41-4"><a aria-hidden="true" href="#cb41-4" tabindex="-1"></a></span>
<span id="cb41-5"><a aria-hidden="true" href="#cb41-5" tabindex="-1"></a><span class="kw">[auth]</span></span>
<span id="cb41-6"><a aria-hidden="true" href="#cb41-6" tabindex="-1"></a><span class="dt">type </span><span class="ot">=</span><span class="st"> htpasswd</span></span>
<span id="cb41-7"><a aria-hidden="true" href="#cb41-7" tabindex="-1"></a><span class="dt">htpasswd_filename </span><span class="ot">=</span><span class="st"> ~/.config/radicale/users</span></span>
<span id="cb41-8"><a aria-hidden="true" href="#cb41-8" tabindex="-1"></a><span class="dt">htpasswd_encryption </span><span class="ot">=</span><span class="st"> autodetect</span></span>
<span id="cb41-9"><a aria-hidden="true" href="#cb41-9" tabindex="-1"></a></span>
<span id="cb41-10"><a aria-hidden="true" href="#cb41-10" tabindex="-1"></a><span class="kw">[storage]</span></span>
<span id="cb41-11"><a aria-hidden="true" href="#cb41-11" tabindex="-1"></a><span class="dt">filesystem_folder </span><span class="ot">=</span><span class="st"> ~/.var/lib/radicale/collections</span></span></code></pre></div>
<p>Radicale tries to load configuration files from
<code>/etc/radicale/config</code> and
<code>~/.config/radicale/config</code>. Custom paths can be specified
with the <code>--config /path/to/config</code> command line argument or
the <code>RADICALE_CONFIG</code> environment variable. Multiple
configuration files can be separated by <code>:</code> (resp.
<code>;</code> on Windows). Paths that start with <code>?</code> are
optional.</p>
<p>The same example configuration via command line arguments looks
like:</p>
<div class="sourceCode" id="cb42"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb42-1"><a aria-hidden="true" href="#cb42-1" tabindex="-1"></a><span class="ex">python3</span> <span class="at">-m</span> radicale <span class="at">--server-hosts</span> 0.0.0.0:5232,<span class="pp">[</span><span class="ss">::</span><span class="pp">]</span>:5232 <span class="dt">\</span></span>
<span id="cb42-2"><a aria-hidden="true" href="#cb42-2" tabindex="-1"></a> <span class="at">--auth-type</span> htpasswd <span class="at">--auth-htpasswd-filename</span> ~/.config/radicale/users <span class="dt">\</span></span>
<span id="cb42-3"><a aria-hidden="true" href="#cb42-3" tabindex="-1"></a> <span class="at">--auth-htpasswd-encryption</span> autodetect</span></code></pre></div>
<p>Add the argument <code>--config ""</code> to stop Radicale from
loading the default configuration files. Run
<code>python3 -m radicale --help</code> for more information.</p>
<p>You can also use command-line options in startup scripts as shown in
the following examples:</p>
<div class="sourceCode" id="cb43"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb43-1"><a aria-hidden="true" href="#cb43-1" tabindex="-1"></a><span class="co">## simple variable containing multiple options</span></span>
<span id="cb43-2"><a aria-hidden="true" href="#cb43-2" tabindex="-1"></a><span class="va">RADICALE_OPTIONS</span><span class="op">=</span><span class="st">"--logging-level=debug --config=/etc/radicale/config --logging-request-header-on-debug --logging-rights-rule-doesnt-match-on-debug"</span></span>
<span id="cb43-3"><a aria-hidden="true" href="#cb43-3" tabindex="-1"></a><span class="ex">/usr/bin/radicale</span> <span class="va">$RADICALE_OPTIONS</span></span>
<span id="cb43-4"><a aria-hidden="true" href="#cb43-4" tabindex="-1"></a></span>
<span id="cb43-5"><a aria-hidden="true" href="#cb43-5" tabindex="-1"></a><span class="co">## variable as array method #1</span></span>
<span id="cb43-6"><a aria-hidden="true" href="#cb43-6" tabindex="-1"></a><span class="va">RADICALE_OPTIONS</span><span class="op">=</span><span class="va">(</span><span class="st">"--logging-level=debug"</span> <span class="st">"--config=/etc/radicale/config"</span> <span class="st">"--logging-request-header-on-debug"</span> <span class="st">"--logging-rights-rule-doesnt-match-on-debug"</span><span class="va">)</span></span>
<span id="cb43-7"><a aria-hidden="true" href="#cb43-7" tabindex="-1"></a><span class="ex">/usr/bin/radicale</span> <span class="va">${RADICALE_OPTIONS</span><span class="op">[@]</span><span class="va">}</span></span>
<span id="cb43-8"><a aria-hidden="true" href="#cb43-8" tabindex="-1"></a></span>
<span id="cb43-9"><a aria-hidden="true" href="#cb43-9" tabindex="-1"></a><span class="co">## variable as array method #2</span></span>
<span id="cb43-10"><a aria-hidden="true" href="#cb43-10" tabindex="-1"></a><span class="va">RADICALE_OPTIONS</span><span class="op">=</span><span class="va">()</span></span>
<span id="cb43-11"><a aria-hidden="true" href="#cb43-11" tabindex="-1"></a><span class="va">RADICALE_OPTIONS</span><span class="op">+=</span><span class="va">(</span><span class="st">"--logging-level=debug"</span><span class="va">)</span></span>
<span id="cb43-12"><a aria-hidden="true" href="#cb43-12" tabindex="-1"></a><span class="va">RADICALE_OPTIONS</span><span class="op">+=</span><span class="va">(</span><span class="st">"--config=/etc/radicale/config"</span><span class="va">)</span></span>
<span id="cb43-13"><a aria-hidden="true" href="#cb43-13" tabindex="-1"></a><span class="ex">/usr/bin/radicale</span> <span class="va">${RADICALE_OPTIONS</span><span class="op">[@]</span><span class="va">}</span></span></code></pre></div>
<p>The following describes all configuration sections and options.</p>
<section class="level4" id="server">
<h4>[server] <a class="headerlink" href="#server">&para;</a></h4>
<p>The configuration options in this section are only relevant in
standalone mode; they are ignored, when Radicale runs on WSGI.</p>
<section class="level5" id="hosts">
<h5>hosts <a class="headerlink" href="#hosts">&para;</a></h5>
<p>A comma separated list of addresses that the server will bind to.</p>
<p>Default: <code>localhost:5232</code></p>
</section>
<section class="level5" id="max_connections">
<h5>max_connections <a class="headerlink" href="#max_connections">&para;</a></h5>
<p>The maximum number of parallel connections. Set to <code>0</code> to
disable the limit.</p>
<p>Default: <code>8</code></p>
</section>
<section class="level5" id="max_content_length">
<h5>max_content_length <a class="headerlink" href="#max_content_length">&para;</a></h5>
<p>The maximum size of the request body. (bytes)</p>
<p>Default: <code>100000000</code></p>
<p>In case of using a reverse proxy in front of check also there related
option</p>
</section>
<section class="level5" id="timeout">
<h5>timeout <a class="headerlink" href="#timeout">&para;</a></h5>
<p>Socket timeout. (seconds)</p>
<p>Default: <code>30</code></p>
</section>
<section class="level5" id="ssl">
<h5>ssl <a class="headerlink" href="#ssl">&para;</a></h5>
<p>Enable transport layer encryption.</p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="certificate">
<h5>certificate <a class="headerlink" href="#certificate">&para;</a></h5>
<p>Path of the SSL certificate.</p>
<p>Default: <code>/etc/ssl/radicale.cert.pem</code></p>
</section>
<section class="level5" id="key">
<h5>key <a class="headerlink" href="#key">&para;</a></h5>
<p>Path to the private key for SSL. Only effective if <code>ssl</code>
is enabled.</p>
<p>Default: <code>/etc/ssl/radicale.key.pem</code></p>
</section>
<section class="level5" id="certificate_authority">
<h5>certificate_authority <a class="headerlink" href="#certificate_authority">&para;</a></h5>
<p>Path to the CA certificate for validating client certificates. This
can be used to secure TCP traffic between Radicale and a reverse proxy.
If you want to authenticate users with client-side certificates, you
also have to write an authentication plugin that extracts the username
from the certificate.</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="protocol">
<h5>protocol <a class="headerlink" href="#protocol">&para;</a></h5>
<p><em>(&gt;= 3.3.1)</em></p>
<p>Accepted SSL protocol (maybe not all supported by underlying OpenSSL
version) Example for secure configuration: ALL -SSLv3 -TLSv1 -TLSv1.1
Format: Apache SSLProtocol list (from "mod_ssl")</p>
<p>Default: (system default)</p>
</section>
<section class="level5" id="ciphersuite">
<h5>ciphersuite <a class="headerlink" href="#ciphersuite">&para;</a></h5>
<p><em>(&gt;= 3.3.1)</em></p>
<p>Accepted SSL ciphersuite (maybe not all supported by underlying
OpenSSL version) Example for secure configuration: DHE:ECDHE:-NULL:-SHA
Format: OpenSSL cipher list (see also "man openssl-ciphers")</p>
<p>Default: (system-default)</p>
</section>
<section class="level5" id="script_name">
<h5>script_name <a class="headerlink" href="#script_name">&para;</a></h5>
<p><em>(&gt;= 3.5.0)</em></p>
<p>Strip script name from URI if called by reverse proxy</p>
<p>Default: (taken from HTTP_X_SCRIPT_NAME or SCRIPT_NAME)</p>
</section>
</section>
<section class="level4" id="encoding">
<h4>[encoding] <a class="headerlink" href="#encoding">&para;</a></h4>
<section class="level5" id="request">
<h5>request <a class="headerlink" href="#request">&para;</a></h5>
<p>Encoding for responding requests.</p>
<p>Default: <code>utf-8</code></p>
</section>
<section class="level5" id="stock">
<h5>stock <a class="headerlink" href="#stock">&para;</a></h5>
<p>Encoding for storing local collections</p>
<p>Default: <code>utf-8</code></p>
</section>
</section>
<section class="level4" id="auth">
<h4>[auth] <a class="headerlink" href="#auth">&para;</a></h4>
<section class="level5" id="type">
<h5>type <a class="headerlink" href="#type">&para;</a></h5>
<p>The method to verify usernames and passwords.</p>
<p>Available types are:</p>
<ul>
<li><p><code>none</code><br>
Just allows all usernames and passwords.</p></li>
<li><p><code>denyall</code> <em>(&gt;= 3.2.2)</em><br>
Just denies all usernames and passwords.</p></li>
<li><p><code>htpasswd</code><br>
Use an <a href="https://httpd.apache.org/docs/current/programs/htpasswd.html">Apache
htpasswd file</a> to store usernames and passwords.</p></li>
<li><p><code>remote_user</code><br>
Takes the username from the <code>REMOTE_USER</code> environment
variable and disables Radicale's internal HTTP authentication. This can
be used to provide the username from a WSGI server which authenticated
the client upfront. Requires validation, otherwise clients can supply
the header themselves, which then is unconditionally trusted.</p></li>
<li><p><code>http_x_remote_user</code><br>
Takes the username from the <code>X-Remote-User</code> HTTP header and
disables Radicale's internal HTTP authentication. This can be used to
provide the username from a reverse proxy which authenticated the client
upfront. Requires validation, otherwise clients can supply the header
themselves, which then is unconditionally trusted.</p></li>
<li><p><code>ldap</code> <em>(&gt;= 3.3.0)</em><br>
Use a LDAP or AD server to authenticate users by relaying credentials
from clients and handle results.</p></li>
<li><p><code>dovecot</code> <em>(&gt;= 3.3.1)</em><br>
Use a Dovecot server to authenticate users by relaying credentials from
clients and handle results.</p></li>
<li><p><code>imap</code> <em>(&gt;= 3.4.1)</em><br>
Use an IMAP server to authenticate users by relaying credentials from
clients and handle results.</p></li>
<li><p><code>oauth2</code> <em>(&gt;= 3.5.0)</em><br>
Use an OAuth2 server to authenticate users by relaying credentials from
clients and handle results. OAuth2 authentication (SSO) directly on
client is not supported. Use herefore <code>http_x_remote_user</code> in
combination with SSO support in reverse proxy (e.g.
Apache+mod_auth_openidc).</p></li>
<li><p><code>pam</code> <em>(&gt;= 3.5.0)</em><br>
Use local PAM to authenticate users by relaying credentials from client
and handle result..</p></li>
</ul>
<p>Default: <code>none</code> <em>(&lt; 3.5.0)</em> /
<code>denyall</code> <em>(&gt;= 3.5.0)</em></p>
</section>
<section class="level5" id="cache_logins">
<h5>cache_logins <a class="headerlink" href="#cache_logins">&para;</a></h5>
<p><em>(&gt;= 3.4.0)</em></p>
<p>Cache successful/failed logins until expiration time. Enable this to
avoid overload of authentication backends.</p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="cache_successful_logins_expiry">
<h5>cache_successful_logins_expiry <a class="headerlink" href="#cache_successful_logins_expiry">&para;</a></h5>
<p><em>(&gt;= 3.4.0)</em></p>
<p>Expiration time of caching successful logins in seconds</p>
<p>Default: <code>15</code></p>
</section>
<section class="level5" id="cache_failed_logins_expiry">
<h5>cache_failed_logins_expiry <a class="headerlink" href="#cache_failed_logins_expiry">&para;</a></h5>
<p><em>(&gt;= 3.4.0)</em></p>
<p>Expiration time of caching failed logins in seconds</p>
<p>Default: <code>90</code></p>
</section>
<section class="level5" id="htpasswd_filename">
<h5>htpasswd_filename <a class="headerlink" href="#htpasswd_filename">&para;</a></h5>
<p>Path to the htpasswd file.</p>
<p>Default: <code>/etc/radicale/users</code></p>
</section>
<section class="level5" id="htpasswd_encryption">
<h5>htpasswd_encryption <a class="headerlink" href="#htpasswd_encryption">&para;</a></h5>
<p>The encryption method that is used in the htpasswd file. Use <a href="https://httpd.apache.org/docs/current/programs/htpasswd.html">htpasswd</a>
or similar to generate this file.</p>
<p>Available methods:</p>
<ul>
<li><p><code>plain</code><br>
Passwords are stored in plaintext. This is not recommended. as it is
obviously <strong>insecure!</strong> The htpasswd file for this can be
created by hand and looks like:</p>
<pre class="htpasswd"><code>user1:password1
user2:password2</code></pre></li>
<li><p><code>bcrypt</code><br>
This uses a modified version of the Blowfish stream cipher, which is
considered very secure. The installation of Python's
<strong>bcrypt</strong> module is required for this to work.</p></li>
<li><p><code>md5</code><br>
Use an iterated MD5 digest of the password with salt (nowadays
insecure).</p></li>
<li><p><code>sha256</code> <em>(&gt;= 3.1.9)</em><br>
Use an iterated SHA-256 digest of the password with salt.</p></li>
<li><p><code>sha512</code> <em>(&gt;= 3.1.9)</em><br>
Use an iterated SHA-512 digest of the password with salt.</p></li>
<li><p><code>argon2</code> <em>(&gt;= 3.5.3)</em><br>
Use an iterated ARGON2 digest of the password with salt. The
installation of Python's <strong>argon2-cffi</strong> module is required
for this to work.</p></li>
<li><p><code>autodetect</code> <em>(&gt;= 3.1.9)</em><br>
Automatically detect the encryption method used per user entry.</p></li>
</ul>
<p>Default: <code>md5</code> <em>(&lt; 3.3.0)</em> /
<code>autodetect</code> <em>(&gt;= 3.3.0)</em></p>
</section>
<section class="level5" id="htpasswd_cache">
<h5>htpasswd_cache <a class="headerlink" href="#htpasswd_cache">&para;</a></h5>
<p><em>(&gt;= 3.4.0)</em></p>
<p>Enable caching of htpasswd file based on size and mtime_ns</p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="delay">
<h5>delay <a class="headerlink" href="#delay">&para;</a></h5>
<p>Average delay (in seconds) after failed login attempts.</p>
<p>Default: <code>1</code></p>
</section>
<section class="level5" id="realm">
<h5>realm <a class="headerlink" href="#realm">&para;</a></h5>
<p>Message displayed in the client when a password is needed.</p>
<p>Default: <code>Radicale - Password Required</code></p>
</section>
<section class="level5" id="ldap_uri">
<h5>ldap_uri <a class="headerlink" href="#ldap_uri">&para;</a></h5>
<p><em>(&gt;= 3.3.0)</em></p>
<p>URI to the LDAP server. Mandatory for auth type
<code>ldap</code>.</p>
<p>Default: <code>ldap://localhost</code></p>
</section>
<section class="level5" id="ldap_base">
<h5>ldap_base <a class="headerlink" href="#ldap_base">&para;</a></h5>
<p><em>(&gt;= 3.3.0)</em></p>
<p>Base DN of the LDAP server. Mandatory for auth type
<code>ldap</code>.</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="ldap_reader_dn">
<h5>ldap_reader_dn <a class="headerlink" href="#ldap_reader_dn">&para;</a></h5>
<p><em>(&gt;= 3.3.0)</em></p>
<p>DN of a LDAP user with read access users and - if defined - groups.
Mandatory for auth type <code>ldap</code>.</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="ldap_secret">
<h5>ldap_secret <a class="headerlink" href="#ldap_secret">&para;</a></h5>
<p><em>(&gt;= 3.3.0)</em></p>
<p>Password of <code>ldap_reader_dn</code>. Mandatory for auth type
<code>ldap</code> unless <code>ldap_secret_file</code> is given.</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="ldap_secret_file">
<h5>ldap_secret_file <a class="headerlink" href="#ldap_secret_file">&para;</a></h5>
<p><em>(&gt;= 3.3.0)</em></p>
<p>Path to the file containing the password of
<code>ldap_reader_dn</code>. Mandatory for auth type <code>ldap</code>
unless <code>ldap_secret</code> is given.</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="ldap_filter">
<h5>ldap_filter <a class="headerlink" href="#ldap_filter">&para;</a></h5>
<p><em>(&gt;= 3.3.0)</em></p>
<p>Filter to search for the LDAP entry of the user to authenticate. It
must contain '{0}' as placeholder for the login name.</p>
<p>Default: <code>(cn={0})</code></p>
</section>
<section class="level5" id="ldap_user_attribute">
<h5>ldap_user_attribute <a class="headerlink" href="#ldap_user_attribute">&para;</a></h5>
<p><em>(&gt;= 3.4.0)</em></p>
<p>LDAP attribute whose value shall be used as the username after
successful authentication.</p>
<p>If set, you can use flexible logins in <code>ldap_filter</code> and
still have consolidated usernames, e.g. to allow users to login using
mail addresses as an alternative to cn, simply set</p>
<div class="sourceCode" id="cb45"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb45-1"><a aria-hidden="true" href="#cb45-1" tabindex="-1"></a><span class="dt">ldap_filter </span><span class="ot">=</span><span class="st"> (&(objectclass=inetOrgPerson)(|(cn={0})(mail={0})))</span></span>
<span id="cb45-2"><a aria-hidden="true" href="#cb45-2" tabindex="-1"></a><span class="dt">ldap_user_attribute </span><span class="ot">=</span><span class="st"> cn</span></span></code></pre></div>
<p>Even for simple filter setups, it is recommended to set it in order
to get usernames exactly as they are stored in LDAP and to avoid
inconsistencies in the upper-/lower-case spelling of the login
names.</p>
<p>Default: (unset, in which case the login name is directly used as the
username)</p>
</section>
<section class="level5" id="ldap_use_ssl">
<h5>ldap_use_ssl <a class="headerlink" href="#ldap_use_ssl">&para;</a></h5>
<p><em>(&gt;= 3.3.0)</em></p>
<p>Use ssl on the LDAP connection. <strong>Deprecated!</strong> Use
<code>ldap_security</code> instead.</p>
</section>
<section class="level5" id="ldap_security">
<h5>ldap_security <a class="headerlink" href="#ldap_security">&para;</a></h5>
<p><em>(&gt;= 3.5.2)</em></p>
<p>Use encryption on the LDAP connection.</p>
<p>One of</p>
<ul>
<li><code>none</code></li>
<li><code>tls</code></li>
<li><code>starttls</code></li>
</ul>
<p>Default: <code>none</code></p>
</section>
<section class="level5" id="ldap_ssl_verify_mode">
<h5>ldap_ssl_verify_mode <a class="headerlink" href="#ldap_ssl_verify_mode">&para;</a></h5>
<p><em>(&gt;= 3.3.0)</em></p>
<p>Certificate verification mode for tls and starttls.</p>
<p>One of</p>
<ul>
<li><code>NONE</code></li>
<li><code>OPTIONAL</code></li>
<li><code>REQUIRED</code>.</li>
</ul>
<p>Default: <code>REQUIRED</code></p>
</section>
<section class="level5" id="ldap_ssl_ca_file">
<h5>ldap_ssl_ca_file <a class="headerlink" href="#ldap_ssl_ca_file">&para;</a></h5>
<p><em>(&gt;= 3.3.0)</em></p>
<p>Path to the CA file in PEM format which is used to certify the server
certificate</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="ldap_groups_attribute">
<h5>ldap_groups_attribute <a class="headerlink" href="#ldap_groups_attribute">&para;</a></h5>
<p><em>(&gt;= 3.4.0)</em></p>
<p>LDAP attribute in the authenticated user's LDAP entry to read the
group memberships from.</p>
<p>E.g. <code>memberOf</code> to get groups on Active Directory and
alikes, <code>groupMembership</code> on Novell eDirectory, ...</p>
<p>If set, get the user's LDAP groups from the attribute given.</p>
<p>For DN-valued attributes, the value of the RDN is used to determine
the group names. The implementation also supports non-DN-valued
attributes: their values are taken directly.</p>
<p>The user's group names can be used later to define rights. They also
give you access to the group calendars, if those exist.</p>
<ul>
<li>Group calendars are placed directly under
<em>collection_root_folder</em><code>/GROUPS/</code> with the
base64-encoded group name as the calendar folder name.</li>
<li>Group calendar folders are not created automatically. This must be
done manually. In the <a href="https://github.com/Kozea/Radicale/wiki/LDAP-authentication">LDAP-authentication
section of Radicale's wiki</a> you can find a script to create a group
calendar.</li>
</ul>
<p>Default: (unset)</p>
</section>
<section class="level5" id="ldap_group_members_attribute">
<h5>ldap_group_members_attribute <a class="headerlink" href="#ldap_group_members_attribute">&para;</a></h5>
<p><em>(&gt;= 3.5.6)</em></p>
<p>Attribute in the group entries to read the group's members from.</p>
<p>E.g. <code>member</code> for groups with objectclass
<code>groupOfNames</code>.</p>
<p>Using <code>ldap_group_members_attribute</code>,
<code>ldap_group_base</code> and <code>ldap_group_filter</code> is an
alternative approach to getting the user's groups. Instead of reading
them from <code>ldap_groups_attribute</code> in the user's entry, an
additional query is performed to seach for those groups beneath
<code>ldap_group_base</code>, that have the user's DN in their
<code>ldap_group_members_attribute</code> and additionally fulfil
<code>ldap_group_filter</code>.</p>
<p>As with DN-valued <code>ldap_groups_attribute</code>, the value of
the RDN is used to determine the group names.</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="ldap_group_base">
<h5>ldap_group_base <a class="headerlink" href="#ldap_group_base">&para;</a></h5>
<p><em>(&gt;= 3.5.6)</em></p>
<p>Base DN to search for groups. Only necessary if
<code>ldap_group_members_attribute</code> is set, and if the base DN for
groups differs from <code>ldap_base</code>.</p>
<p>Default: (unset, in which case <code>ldap_base</code> is used as
fallback)</p>
</section>
<section class="level5" id="ldap_group_filter">
<h5>ldap_group_filter <a class="headerlink" href="#ldap_group_filter">&para;</a></h5>
<p><em>(&gt;= 3.5.6)</em></p>
<p>Search filter to search for groups having the user DN found as
member. Only necessary <code>ldap_group_members_attribute</code> is set,
and you want the groups returned to be restricted instead of all groups
the user's DN is in.</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="ldap_ignore_attribute_create_modify_timestamp">
<h5>ldap_ignore_attribute_create_modify_timestamp <a class="headerlink" href="#ldap_ignore_attribute_create_modify_timestamp">&para;</a></h5>
<p><em>(&gt;= 3.5.1)</em></p>
<p>Quirks for Authentik LDAP server, which violates the LDAP RFCs: add
modifyTimestamp and createTimestamp to the exclusion list of internal
ldap3 client so that these schema attributes are not checked.</p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="dovecot_connection_type">
<h5>dovecot_connection_type <a class="headerlink" href="#dovecot_connection_type">&para;</a></h5>
<p><em>(&gt;= 3.4.1)</em></p>
<p>Connection type for dovecot authentication.</p>
<p>One of:</p>
<ul>
<li><code>AF_UNIX</code></li>
<li><code>AF_INET</code></li>
<li><code>AF_INET6</code></li>
</ul>
<p>Note: credentials are transmitted in cleartext</p>
<p>Default: <code>AF_UNIX</code></p>
</section>
<section class="level5" id="dovecot_socket">
<h5>dovecot_socket <a class="headerlink" href="#dovecot_socket">&para;</a></h5>
<p><em>(&gt;= 3.3.1)</em></p>
<p>Path to the Dovecot client authentication socket (eg.
/run/dovecot/auth-client on Fedora). Radicale must have read & write
access to the socket.</p>
<p>Default: <code>/var/run/dovecot/auth-client</code></p>
</section>
<section class="level5" id="dovecot_host">
<h5>dovecot_host <a class="headerlink" href="#dovecot_host">&para;</a></h5>
<p><em>(&gt;= 3.4.1)</em></p>
<p>Host of dovecot socket exposed via network</p>
<p>Default: <code>localhost</code></p>
</section>
<section class="level5" id="dovecot_port">
<h5>dovecot_port <a class="headerlink" href="#dovecot_port">&para;</a></h5>
<p><em>(&gt;= 3.4.1)</em></p>
<p>Port of dovecot socket exposed via network</p>
<p>Default: <code>12345</code></p>
</section>
<section class="level5" id="remote_ip_source">
<h5>remote_ip_source <a class="headerlink" href="#remote_ip_source">&para;</a></h5>
<p><em>(&gt;= 3.5.6)</em></p>
<p>For authentication mechanisms that are made aware of the remote IP
(such as dovecot via the <code>rip=</code> auth protocol parameter),
determine the source to use. Currently, valid values are</p>
<p><code>REMOTE_ADDR</code> (default) : Use the REMOTE_ADDR environment
variable that captures the remote address of the socket connection.</p>
<p><code>X-Remote-Addr</code> : Use the <code>X-Remote-Addr</code> HTTP
header value.</p>
<p>In the case of <code>X-Remote-Addr</code>, Radicale must be running
be running behind a proxy that you control and that sets/overwrites the
<code>X-Remote-Addr</code> header (doesn't pass it) so that the value
passed to dovecot is reliable. For example, for nginx, add</p>
<pre><code> proxy_set_header X-Remote-Addr $remote_addr;</code></pre>
<p>to the configuration sample.</p>
<p>Default: <code>REMOTE_ADDR</code></p>
</section>
<section class="level5" id="imap_host">
<h5>imap_host <a class="headerlink" href="#imap_host">&para;</a></h5>
<p><em>(&gt;= 3.4.1)</em></p>
<p>IMAP server hostname.</p>
<p>One of:</p>
<ul>
<li>address</li>
<li>address:port</li>
<li></li>
<li>imap.server.tld</li>
</ul>
<p>Default: <code>localhost</code></p>
</section>
<section class="level5" id="imap_security">
<h5>imap_security <a class="headerlink" href="#imap_security">&para;</a></h5>
<p><em>(&gt;= 3.4.1)</em></p>
<p>Secure the IMAP connection:</p>
<p>One of:</p>
<ul>
<li><code>tls</code></li>
<li><code>starttls</code></li>
<li><code>none</code></li>
</ul>
<p>Default: <code>tls</code></p>
</section>
<section class="level5" id="oauth2_token_endpoint">
<h5>oauth2_token_endpoint <a class="headerlink" href="#oauth2_token_endpoint">&para;</a></h5>
<p><em>(&gt;= 3.5.0)</em></p>
<p>Endpoint URL for the OAuth2 token</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="pam_service">
<h5>pam_service <a class="headerlink" href="#pam_service">&para;</a></h5>
<p><em>(&gt;= 3.5.0)</em></p>
<p>PAM service name</p>
<p>Default: <code>radicale</code></p>
</section>
<section class="level5" id="pam_group_membership">
<h5>pam_group_membership <a class="headerlink" href="#pam_group_membership">&para;</a></h5>
<p><em>(&gt;= 3.5.0)</em></p>
<p>PAM group user should be member of</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="lc_username">
<h5>lc_username <a class="headerlink" href="#lc_username">&para;</a></h5>
<p>&Scy;onvert username to lowercase. Recommended to be <code>True</code>
for case-insensitive auth providers like ldap, kerberos, ...</p>
<p>Default: <code>False</code></p>
<p>Notes:</p>
<ul>
<li><code>lc_username</code> and <code>uc_username</code> are mutually
exclusive</li>
<li>for auth type <code>ldap</code> the use of
<code>ldap_user_attribute</code> is preferred over
<code>lc_username</code></li>
</ul>
</section>
<section class="level5" id="uc_username">
<h5>uc_username <a class="headerlink" href="#uc_username">&para;</a></h5>
<p><em>(&gt;= 3.3.2)</em></p>
<p>&Scy;onvert username to uppercase. Recommended to be <code>True</code>
for case-insensitive auth providers like ldap, kerberos, ...</p>
<p>Default: <code>False</code></p>
<p>Notes:</p>
<ul>
<li><code>uc_username</code> and <code>lc_username</code> are mutually
exclusive</li>
<li>for auth type <code>ldap</code> the use of
<code>ldap_user_attribute</code> is preferred over
<code>uc_username</code></li>
</ul>
</section>
<section class="level5" id="strip_domain">
<h5>strip_domain <a class="headerlink" href="#strip_domain">&para;</a></h5>
<p><em>(&gt;= 3.2.3)</em></p>
<p>Strip domain from username</p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="urldecode_username">
<h5>urldecode_username <a class="headerlink" href="#urldecode_username">&para;</a></h5>
<p><em>(&gt;= 3.5.3)</em></p>
<p>URL-decode the username. If the username is an email address, some
clients send the username URL-encoded (notably iOS devices) breaking the
authentication process (<a href="mailto:user@example.com">user@example.com</a> becomes
user%40example.com). This setting forces decoding the username.</p>
<p>Default: <code>False</code></p>
</section>
</section>
<section class="level4" id="rights">
<h4>[rights] <a class="headerlink" href="#rights">&para;</a></h4>
<section class="level5" id="type-1">
<h5>type <a class="headerlink" href="#type-1">&para;</a></h5>
<p>Authorization backend that is used to check the access rights to
collections.</p>
<p>The default and recommended backend is <code>owner_only</code>. If
access to calendars and address books outside the user's collection
directory (that's <code>/username/</code>) is granted, clients will not
detect these collections automatically and will not show them to the
users. Choosing any other authorization backend is only useful if you
access calendars and address books directly via URL.</p>
<p>Available backends are:</p>
<ul>
<li><p><code>authenticated</code><br>
Authenticated users can read and write everything.</p></li>
<li><p><code>owner_only</code><br>
Authenticated users can read and write their own collections under the
path <em>/USERNAME/</em>.</p></li>
<li><p><code>owner_write</code><br>
Authenticated users can read everything and write their own collections
under the path <em>/USERNAME/</em>.</p></li>
<li><p><code>from_file</code><br>
Load the rules from a file.</p></li>
</ul>
<p>Default: <code>owner_only</code></p>
</section>
<section class="level5" id="file">
<h5>file <a class="headerlink" href="#file">&para;</a></h5>
<p>Name of the file containing the authorization rules for the
<code>from_file</code> backend. See the <a href="#authorization-and-rights">Rights</a> section for details.</p>
<p>Default: <code>/etc/radicale/rights</code></p>
</section>
<section class="level5" id="permit_delete_collection">
<h5>permit_delete_collection <a class="headerlink" href="#permit_delete_collection">&para;</a></h5>
<p><em>(&gt;= 3.1.9)</em></p>
<p>Global permission to delete complete collections.</p>
<ul>
<li>If <code>False</code> it can be explicitly granted per collection by
<code>permissions: D</code></li>
<li>If <code>True</code> it can be explicitly forbidden per collection
by <code>permissions: d</code></li>
</ul>
<p>Default: <code>True</code></p>
</section>
<section class="level5" id="permit_overwrite_collection">
<h5>permit_overwrite_collection <a class="headerlink" href="#permit_overwrite_collection">&para;</a></h5>
<p><em>(&gt;= 3.3.0)</em></p>
<p>Global permission to overwrite complete collections.</p>
<ul>
<li>If <code>False</code> it can be explicitly granted per collection by
<code>permissions: O</code></li>
<li>If <code>True</code> it can be explicitly forbidden per collection
by <code>permissions: o</code></li>
</ul>
<p>Default: <code>True</code></p>
</section>
</section>
<section class="level4" id="storage-1">
<h4>[storage] <a class="headerlink" href="#storage-1">&para;</a></h4>
<section class="level5" id="type-2">
<h5>type <a class="headerlink" href="#type-2">&para;</a></h5>
<p>Backend used to store data.</p>
<p>Available backends are:</p>
<ul>
<li><p><code>multifilesystem</code><br>
Stores the data in the filesystem.</p></li>
<li><p><code>multifilesystem_nolock</code><br>
The <code>multifilesystem</code> backend without file-based locking.
Must only be used with a single process.</p></li>
</ul>
<p>Default: <code>multifilesystem</code></p>
</section>
<section class="level5" id="filesystem_folder">
<h5>filesystem_folder <a class="headerlink" href="#filesystem_folder">&para;</a></h5>
<p>Folder for storing local collections; will be auto-created if not
present.</p>
<p>Default: <code>/var/lib/radicale/collections</code></p>
</section>
<section class="level5" id="filesystem_cache_folder">
<h5>filesystem_cache_folder <a class="headerlink" href="#filesystem_cache_folder">&para;</a></h5>
<p><em>(&gt;= 3.3.2)</em></p>
<p>Folder for storing cache of local collections; will be auto-created
if not present</p>
<p>Default: (filesystem_folder)</p>
<p>Note: only used if use_cache_subfolder_* options are active</p>
<p>Note: can be used on multi-instance setup to cache files on local
node (see below)</p>
</section>
<section class="level5" id="use_cache_subfolder_for_item">
<h5>use_cache_subfolder_for_item <a class="headerlink" href="#use_cache_subfolder_for_item">&para;</a></h5>
<p><em>(&gt;= 3.3.2)</em></p>
<p>Use subfolder <code>collection-cache</code> for cache file structure
of 'item' instead of inside collection folders, created if not
present</p>
<p>Default: <code>False</code></p>
<p>Note: can be used on multi-instance setup to cache 'item' on local
node</p>
</section>
<section class="level5" id="use_cache_subfolder_for_history">
<h5>use_cache_subfolder_for_history <a class="headerlink" href="#use_cache_subfolder_for_history">&para;</a></h5>
<p><em>(&gt;= 3.3.2)</em></p>
<p>Use subfolder <code>collection-cache</code> for cache file structure
of 'history' instead of inside collection folders, created if not
present</p>
<p>Default: <code>False</code></p>
<p>Note: only use on single-instance setup: it will break consistency
with clients in multi-instance setup</p>
</section>
<section class="level5" id="use_cache_subfolder_for_synctoken">
<h5>use_cache_subfolder_for_synctoken <a class="headerlink" href="#use_cache_subfolder_for_synctoken">&para;</a></h5>
<p><em>(&gt;= 3.3.2)</em></p>
<p>Use subfolder <code>collection-cache</code> for cache file structure
of 'sync-token' instead of inside collection folders, created if not
present</p>
<p>Default: <code>False</code></p>
<p>Note: only use on single-instance setup: it will break consistency
with clients in multi-instance setup</p>
</section>
<section class="level5" id="use_mtime_and_size_for_item_cache">
<h5>use_mtime_and_size_for_item_cache <a class="headerlink" href="#use_mtime_and_size_for_item_cache">&para;</a></h5>
<p><em>(&gt;= 3.3.2)</em></p>
<p>Use last modification time (in nanoseconds) and size (in bytes) for
'item' cache instead of SHA256 (improves speed)</p>
<p>Default: <code>False</code></p>
<p>Notes:</p>
<ul>
<li>check used filesystem mtime precision before enabling</li>
<li>conversion is done on access</li>
<li>bulk conversion can be done offline using the storage verification
option <code>radicale --verify-storage</code></li>
</ul>
</section>
<section class="level5" id="folder_umask">
<h5>folder_umask <a class="headerlink" href="#folder_umask">&para;</a></h5>
<p><em>(&gt;= 3.3.2)</em></p>
<p>umask to use for folder creation (not applicable for OS Windows)</p>
<p>Default: (system-default, usually <code>0022</code>)</p>
<p>Useful values:</p>
<ul>
<li><code>0077</code> (user:rw group:- other:-)</li>
<li><code>0027</code> (user:rw group:r other:-)</li>
<li><code>0007</code> (user:rw group:rw other:-)</li>
<li><code>0022</code> (user:rw group:r other:r)</li>
</ul>
</section>
<section class="level5" id="max_sync_token_age">
<h5>max_sync_token_age <a class="headerlink" href="#max_sync_token_age">&para;</a></h5>
<p>Delete sync-tokens that are older than the specified time (in
seconds).</p>
<p>Default: <code>2592000</code></p>
</section>
<section class="level5" id="skip_broken_item">
<h5>skip_broken_item <a class="headerlink" href="#skip_broken_item">&para;</a></h5>
<p><em>(&gt;= 3.2.2)</em></p>
<p>Skip broken item instead of triggering an exception</p>
<p>Default: <code>True</code></p>
</section>
<section class="level5" id="hook">
<h5>hook <a class="headerlink" href="#hook">&para;</a></h5>
<p>Command that is run after changes to storage. See the <a href="#versioning-collections-with-git">Versioning collections with
Git</a> tutorial for an example.</p>
<p>Default: (unset)</p>
<p>Supported placeholders:</p>
<ul>
<li><code>%(user)s</code>: logged-in user</li>
<li><code>%(cwd)s</code>: current working directory <em>(&gt;=
3.5.1)</em></li>
<li><code>%(path)s</code>: full path of item <em>(&gt;= 3.5.1)</em></li>
<li><code>%(to_path)s</code>: full path of destination item (only set on
MOVE request) <em>(&gt;= 3.5.5)</em></li>
<li><code>%(request)s</code>: request method <em>(&gt;= 3.5.5)</em></li>
</ul>
<p>The command will be executed with base directory defined in
<code>filesystem_folder</code> (see above)</p>
</section>
<section class="level5" id="predefined_collections">
<h5>predefined_collections <a class="headerlink" href="#predefined_collections">&para;</a></h5>
<p>Create predefined user collections.</p>
<p>Example:</p>
<div class="sourceCode" id="cb47"><pre class="sourceCode json"><code class="sourceCode json"><span id="cb47-1"><a aria-hidden="true" href="#cb47-1" tabindex="-1"></a><span class="fu">{</span></span>
<span id="cb47-2"><a aria-hidden="true" href="#cb47-2" tabindex="-1"></a> <span class="dt">"def-addressbook"</span><span class="fu">:</span> <span class="fu">{</span></span>
<span id="cb47-3"><a aria-hidden="true" href="#cb47-3" tabindex="-1"></a> <span class="dt">"D:displayname"</span><span class="fu">:</span> <span class="st">"Personal Address Book"</span><span class="fu">,</span></span>
<span id="cb47-4"><a aria-hidden="true" href="#cb47-4" tabindex="-1"></a> <span class="dt">"tag"</span><span class="fu">:</span> <span class="st">"VADDRESSBOOK"</span></span>
<span id="cb47-5"><a aria-hidden="true" href="#cb47-5" tabindex="-1"></a> <span class="fu">},</span></span>
<span id="cb47-6"><a aria-hidden="true" href="#cb47-6" tabindex="-1"></a> <span class="dt">"def-calendar"</span><span class="fu">:</span> <span class="fu">{</span></span>
<span id="cb47-7"><a aria-hidden="true" href="#cb47-7" tabindex="-1"></a> <span class="dt">"C:supported-calendar-component-set"</span><span class="fu">:</span> <span class="st">"VEVENT,VJOURNAL,VTODO"</span><span class="fu">,</span></span>
<span id="cb47-8"><a aria-hidden="true" href="#cb47-8" tabindex="-1"></a> <span class="dt">"D:displayname"</span><span class="fu">:</span> <span class="st">"Personal Calendar"</span><span class="fu">,</span></span>
<span id="cb47-9"><a aria-hidden="true" href="#cb47-9" tabindex="-1"></a> <span class="dt">"tag"</span><span class="fu">:</span> <span class="st">"VCALENDAR"</span></span>
<span id="cb47-10"><a aria-hidden="true" href="#cb47-10" tabindex="-1"></a> <span class="fu">}</span></span>
<span id="cb47-11"><a aria-hidden="true" href="#cb47-11" tabindex="-1"></a><span class="fu">}</span></span></code></pre></div>
<p>Default: (unset)</p>
</section>
</section>
<section class="level4" id="web">
<h4>[web] <a class="headerlink" href="#web">&para;</a></h4>
<section class="level5" id="type-3">
<h5>type <a class="headerlink" href="#type-3">&para;</a></h5>
<p>The backend that provides the web interface of Radicale.</p>
<p>Available backends are:</p>
<ul>
<li><p><code>none</code><br>
Simply shows the message "Radicale works!".</p></li>
<li><p><code>internal</code><br>
Allows creation and management of address books and calendars.</p></li>
</ul>
<p>Default: <code>internal</code></p>
</section>
</section>
<section class="level4" id="logging">
<h4>[logging] <a class="headerlink" href="#logging">&para;</a></h4>
<section class="level5" id="level">
<h5>level <a class="headerlink" href="#level">&para;</a></h5>
<p>Set the logging level.</p>
<p>Available levels are:</p>
<ul>
<li><code>debug</code></li>
<li><code>info</code></li>
<li><code>warning</code></li>
<li><code>error</code></li>
<li><code>critical</code></li>
</ul>
<p>Default: <code>warning</code> <em>(&lt; 3.2.0)</em> /
<code>info</code> <em>(&gt;= 3.2.0)</em></p>
</section>
<section class="level5" id="trace_on_debug">
<h5>trace_on_debug <a class="headerlink" href="#trace_on_debug">&para;</a></h5>
<p><em>(&gt; 3.5.4)</em></p>
<p>Do not filter debug messages starting with 'TRACE'</p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="trace_filter">
<h5>trace_filter <a class="headerlink" href="#trace_filter">&para;</a></h5>
<p><em>(&gt; 3.5.4)</em></p>
<p>Filter debug messages starting with 'TRACE/<token>'</token></p>
<p>Prerequisite: <code>trace_on_debug = True</code></p>
<p>Default: (empty)</p>
</section>
<section class="level5" id="mask_passwords">
<h5>mask_passwords <a class="headerlink" href="#mask_passwords">&para;</a></h5>
<p>Do not include passwords in logs.</p>
<p>Default: <code>True</code></p>
</section>
<section class="level5" id="bad_put_request_content">
<h5>bad_put_request_content <a class="headerlink" href="#bad_put_request_content">&para;</a></h5>
<p><em>(&gt;= 3.2.1)</em></p>
<p>Log bad PUT request content (for further diagnostics)</p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="backtrace_on_debug">
<h5>backtrace_on_debug <a class="headerlink" href="#backtrace_on_debug">&para;</a></h5>
<p><em>(&gt;= 3.2.2)</em></p>
<p>Log backtrace on <code>level = debug</code></p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="request_header_on_debug">
<h5>request_header_on_debug <a class="headerlink" href="#request_header_on_debug">&para;</a></h5>
<p><em>(&gt;= 3.2.2)</em></p>
<p>Log request on <code>level = debug</code></p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="request_content_on_debug">
<h5>request_content_on_debug <a class="headerlink" href="#request_content_on_debug">&para;</a></h5>
<p><em>(&gt;= 3.2.2)</em></p>
<p>Log request on <code>level = debug</code></p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="response_content_on_debug">
<h5>response_content_on_debug <a class="headerlink" href="#response_content_on_debug">&para;</a></h5>
<p><em>(&gt;= 3.2.2)</em></p>
<p>Log response on <code>level = debug</code></p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="rights_rule_doesnt_match_on_debug">
<h5>rights_rule_doesnt_match_on_debug <a class="headerlink" href="#rights_rule_doesnt_match_on_debug">&para;</a></h5>
<p><em>(&gt;= 3.2.3)</em></p>
<p>Log rights rule which doesn't match on <code>level = debug</code></p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="storage_cache_actions_on_debug">
<h5>storage_cache_actions_on_debug <a class="headerlink" href="#storage_cache_actions_on_debug">&para;</a></h5>
<p><em>(&gt;= 3.3.2)</em></p>
<p>Log storage cache actions on <code>level = debug</code></p>
<p>Default: <code>False</code></p>
</section>
</section>
<section class="level4" id="headers">
<h4>[headers] <a class="headerlink" href="#headers">&para;</a></h4>
<p>This section can be used to specify additional HTTP headers that will
be sent to clients.</p>
<p>An example to relax the same-origin policy:</p>
<div class="sourceCode" id="cb48"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb48-1"><a aria-hidden="true" href="#cb48-1" tabindex="-1"></a><span class="dt">Access-Control-Allow-Origin </span><span class="ot">=</span><span class="st"> *</span></span></code></pre></div>
</section>
<section class="level4" id="hook-1">
<h4>[hook] <a class="headerlink" href="#hook-1">&para;</a></h4>
<section class="level5" id="type-4">
<h5>type <a class="headerlink" href="#type-4">&para;</a></h5>
<p>Hook binding for event changes and deletion notifications.</p>
<p>Available types are:</p>
<ul>
<li><p><code>none</code><br>
Disabled. Nothing will be notified.</p></li>
<li><p><code>rabbitmq</code> <em>(&gt;= 3.2.0)</em><br>
Push the message to the rabbitmq server.</p></li>
<li><p><code>email</code> <em>(&gt;= 3.5.5)</em><br>
Send an email notification to event attendees.</p></li>
</ul>
<p>Default: <code>none</code></p>
</section>
<section class="level5" id="dryrun">
<h5>dryrun <a class="headerlink" href="#dryrun">&para;</a></h5>
<p><em>(&gt; 3.5.4)</em></p>
<p>Dry-Run / simulate (i.e. do not really trigger) the hook action.</p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="rabbitmq_endpoint">
<h5>rabbitmq_endpoint <a class="headerlink" href="#rabbitmq_endpoint">&para;</a></h5>
<p><em>(&gt;= 3.2.0)</em></p>
<p>End-point address for rabbitmq server. E.g.:
<code>amqp://user:password@localhost:5672/</code></p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="rabbitmq_topic">
<h5>rabbitmq_topic <a class="headerlink" href="#rabbitmq_topic">&para;</a></h5>
<p><em>(&gt;= 3.2.0)</em></p>
<p>RabbitMQ topic to publish message in.</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="rabbitmq_queue_type">
<h5>rabbitmq_queue_type <a class="headerlink" href="#rabbitmq_queue_type">&para;</a></h5>
<p><em>(&gt;= 3.2.0)</em></p>
<p>RabbitMQ queue type for the topic.</p>
<p>Default: <code>classic</code></p>
</section>
<section class="level5" id="smtp_server">
<h5>smtp_server <a class="headerlink" href="#smtp_server">&para;</a></h5>
<p><em>(&gt;= 3.5.5)</em></p>
<p>Address of SMTP server to connect to.</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="smtp_port">
<h5>smtp_port <a class="headerlink" href="#smtp_port">&para;</a></h5>
<p><em>(&gt;= 3.5.5)</em></p>
<p>Port on SMTP server to connect to.</p>
<p>Default:</p>
</section>
<section class="level5" id="smtp_security">
<h5>smtp_security <a class="headerlink" href="#smtp_security">&para;</a></h5>
<p><em>(&gt;= 3.5.5)</em></p>
<p>Use encryption on the SMTP connection.</p>
<p>One of:</p>
<ul>
<li><code>none</code></li>
<li><code>tls</code></li>
<li><code>starttls</code></li>
</ul>
<p>Default: <code>none</code></p>
</section>
<section class="level5" id="smtp_ssl_verify_mode">
<h5>smtp_ssl_verify_mode <a class="headerlink" href="#smtp_ssl_verify_mode">&para;</a></h5>
<p><em>(&gt;= 3.5.5)</em></p>
<p>The certificate verification mode for tls and starttls.</p>
<p>One of:</p>
<ul>
<li><code>NONE</code></li>
<li><code>OPTIONAL</code></li>
<li><code>REQUIRED</code></li>
</ul>
<p>Default: <code>REQUIRED</code></p>
</section>
<section class="level5" id="smtp_username">
<h5>smtp_username <a class="headerlink" href="#smtp_username">&para;</a></h5>
<p><em>(&gt;= 3.5.5)</em></p>
<p>Username to authenticate with SMTP server. Leave empty to disable
authentication (e.g. using local mail server).</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="smtp_password">
<h5>smtp_password <a class="headerlink" href="#smtp_password">&para;</a></h5>
<p><em>(&gt;= 3.5.5)</em></p>
<p>Password to authenticate with SMTP server. Leave empty to disable
authentication (e.g. using local mail server).</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="from_email">
<h5>from_email <a class="headerlink" href="#from_email">&para;</a></h5>
<p><em>(&gt;= 3.5.5)</em></p>
<p>Email address to use as sender in email notifications.</p>
<p>Default: (unset)</p>
</section>
<section class="level5" id="mass_email">
<h5>mass_email <a class="headerlink" href="#mass_email">&para;</a></h5>
<p><em>(&gt;= 3.5.5)</em></p>
<p>When enabled, send one email to all attendee email addresses. When
disabled, send one email per attendee email address.</p>
<p>Default: <code>False</code></p>
</section>
<section class="level5" id="new_or_added_to_event_template">
<h5>new_or_added_to_event_template <a class="headerlink" href="#new_or_added_to_event_template">&para;</a></h5>
<p><em>(&gt;= 3.5.5)</em></p>
<p>Template to use for added/updated event email body sent to an
attendee when the event is created or they are added to a pre-existing
event.</p>
<p>The following placeholders will be replaced:</p>
<ul>
<li><code>$organizer_name</code>: Name of the organizer, or "Unknown
Organizer" if not set in event</li>
<li><code>$from_email</code>: Email address the email is sent from</li>
<li><code>$attendee_name</code>: Name of the attendee (email recipient),
or "everyone" if mass email enabled.</li>
<li><code>$event_name</code>: Name/summary of the event, or "No Title"
if not set in event</li>
<li><code>$event_start_time</code>: Start time of the event in ISO 8601
format</li>
<li><code>$event_end_time</code>: End time of the event in ISO 8601
format, or "No End Time" if the event has no end time</li>
<li><code>$event_location</code>: Location of the event, or "No Location
Specified" if not set in event</li>
</ul>
<p>Providing any words prefixed with $ not included in the list above
will result in an error.</p>
<p>Default:</p>
<pre><code>Hello $attendee_name,
You have been added as an attendee to the following calendar event.
$event_title
$event_start_time - $event_end_time
$event_location
This is an automated message. Please do not reply.</code></pre>
</section>
<section class="level5" id="deleted_or_removed_from_event_template">
<h5>deleted_or_removed_from_event_template <a class="headerlink" href="#deleted_or_removed_from_event_template">&para;</a></h5>
<p><em>(&gt;= 3.5.5)</em></p>
<p>Template to use for deleted/removed event email body sent to an
attendee when the event is deleted or they are removed from the
event.</p>
<p>The following placeholders will be replaced:</p>
<ul>
<li><code>$organizer_name</code>: Name of the organizer, or "Unknown
Organizer" if not set in event</li>
<li><code>$from_email</code>: Email address the email is sent from</li>
<li><code>$attendee_name</code>: Name of the attendee (email recipient),
or "everyone" if mass email enabled.</li>
<li><code>$event_name</code>: Name/summary of the event, or "No Title"
if not set in event</li>
<li><code>$event_start_time</code>: Start time of the event in ISO 8601
format</li>
<li><code>$event_end_time</code>: End time of the event in ISO 8601
format, or "No End Time" if the event has no end time</li>
<li><code>$event_location</code>: Location of the event, or "No Location
Specified" if not set in event</li>
</ul>
<p>Providing any words prefixed with $ not included in the list above
will result in an error.</p>
<p>Default:</p>
<pre><code>Hello $attendee_name,
The following event has been deleted.
$event_title
$event_start_time - $event_end_time
$event_location
This is an automated message. Please do not reply.</code></pre>
</section>
<section class="level5" id="updated_event_template">
<h5>updated_event_template <a class="headerlink" href="#updated_event_template">&para;</a></h5>
<p><em>(&gt;= 3.5.5)</em></p>
<p>Template to use for updated event email body sent to an attendee when
non-attendee-related details of the event are updated.</p>
<p>Existing attendees will NOT be notified of a modified event if the
only changes are adding/removing other attendees.</p>
<p>The following placeholders will be replaced:</p>
<ul>
<li><code>$organizer_name</code>: Name of the organizer, or "Unknown
Organizer" if not set in event</li>
<li><code>$from_email</code>: Email address the email is sent from</li>
<li><code>$attendee_name</code>: Name of the attendee (email recipient),
or "everyone" if mass email enabled.</li>
<li><code>$event_name</code>: Name/summary of the event, or "No Title"
if not set in event</li>
<li><code>$event_start_time</code>: Start time of the event in ISO 8601
format</li>
<li><code>$event_end_time</code>: End time of the event in ISO 8601
format, or "No End Time" if the event has no end time</li>
<li><code>$event_location</code>: Location of the event, or "No Location
Specified" if not set in event</li>
</ul>
<p>Providing any words prefixed with $ not included in the list above
will result in an error.</p>
<p>Default:</p>
<pre><code>Hello $attendee_name,
The following event has been updated.
$event_title
$event_start_time - $event_end_time
$event_location
This is an automated message. Please do not reply.</code></pre>
</section>
</section>
<section class="level4" id="reporting">
<h4>[reporting] <a class="headerlink" href="#reporting">&para;</a></h4>
<section class="level5" id="max_freebusy_occurrence">
<h5>max_freebusy_occurrence <a class="headerlink" href="#max_freebusy_occurrence">&para;</a></h5>
<p><em>(&gt;= 3.2.3)</em></p>
<p>When returning a free-busy report, a list of busy time occurrences
are generated based on a given time frame. Large time frames could
generate a lot of occurrences based on the time frame supplied. This
setting limits the lookup to prevent potential denial of service attacks
on large time frames. If the limit is reached, an HTTP error is thrown
instead of returning the results.</p>
<p>Default: 10000</p>
</section>
</section>
</section>
</section>
<section class="level2" id="supported-clients">
<h2>Supported Clients <a class="headerlink" href="#supported-clients">&para;</a></h2>
<p>Radicale has been tested with:</p>
<ul>
<li><a href="https://android.com/">Android</a> with <a href="https://www.davx5.com/">DAVx⁵</a> (formerly DAVdroid),</li>
<li><a href="https://www.onecalendar.nl/">OneCalendar</a></li>
<li><a href="https://wiki.gnome.org/Apps/Calendar">GNOME Calendar</a>,
<a href="https://wiki.gnome.org/Apps/Contacts">Contacts</a> and <a href="https://wiki.gnome.org/Apps/Evolution">Evolution</a></li>
<li><a href="https://kontact.kde.org/">KDE PIM Applications</a>, <a href="https://apps.kde.org/de/merkuro/">KDE Merkuro</a></li>
<li><a href="https://www.mozilla.org/thunderbird/">Mozilla
Thunderbird</a> (<a href="https://github.com/Kozea/Radicale/wiki/Client-Thunderbird">Thunderbird/Radicale</a>)
with <a href="https://addons.mozilla.org/thunderbird/addon/cardbook/">CardBook</a>
and <a href="https://www.mozilla.org/projects/calendar/">Lightning</a></li>
<li><a href="https://www.inf-it.com/open-source/clients/infcloud/">InfCloud</a>
(<a href="https://github.com/Kozea/Radicale/wiki/Client-InfCloud">InfCloud/Radicale</a>),
<a href="https://www.inf-it.com/open-source/clients/caldavzap/">CalDavZAP</a>,
<a href="https://www.inf-it.com/open-source/clients/carddavmate/">CardDavMATE</a>
and <a href="https://github.com/algoo/open-calendar/">Open
Calendar</a></li>
<li><a href="https://pimsync.whynothugo.nl/">pimsync</a> (<a href="https://github.com/Kozea/Radicale/wiki/Client-pimsync">pimsync/Radicale</a>)</li>
</ul>
<p>Many clients do not support the creation of new calendars and address
books. You can use Radicale's web interface (e.g. <a href="http://localhost:5232">http://localhost:5232</a>) to create and
manage address books and calendars.</p>
<p>In some clients, it is sufficient to simply enter the URL of the
Radicale server (e.g. <code>http://localhost:5232</code>) and your
username. In others, you have to enter the URL of the collection
directly (e.g. <code>http://localhost:5232/user/calendar</code>).</p>
<p>Some clients (notably macOS's Calendar.app) may silently refuse to
include account credentials over unsecured HTTP, leading to unexpected
authentication failures. In these cases, you want to make sure the
Radicale server is <a href="#ssl">accessible over HTTPS</a>.</p>
<section class="level4" id="davx⁵">
<h4>DAVx⁵ <a class="headerlink" href="#davx⁵">&para;</a></h4>
<p>Enter the URL of the Radicale server (e.g.
<code>http://localhost:5232</code>) and your username. DAVx⁵ will show
all existing calendars and address books and you can create new
ones.</p>
</section>
<section class="level4" id="onecalendar">
<h4>OneCalendar <a class="headerlink" href="#onecalendar">&para;</a></h4>
<p>When adding account, select CalDAV account type, then enter username,
password and the Radicale server (e.g.
<code>https://yourdomain:5232</code>). OneCalendar will show all
existing calendars and (FIXME: address books), you need to select which
ones you want to see. OneCalendar supports many other server types
too.</p>
</section>
<section class="level4" id="gnome-calendar-contacts">
<h4>GNOME Calendar, Contacts <a class="headerlink" href="#gnome-calendar-contacts">&para;</a></h4>
<p>GNOME 46 added CalDAV and CardDAV support to <em>GNOME Online
Accounts</em>.</p>
<p>Open GNOME Settings, navigate to <em>Online Accounts</em> &gt;
<em>Connect an Account</em> &gt; <em>Calendar, Contacts and Files</em>.
Enter the URL (e.g. <code>https://example.com/radicale</code>) and your
credentials then click <em>Sign In</em>. In the pop-up dialog, turn off
<em>Files</em>. After adding Radicale in <em>GNOME Online Accounts</em>,
it should be available in GNOME Contacts and GNOME Calendar.</p>
</section>
<section class="level4" id="evolution">
<h4>Evolution <a class="headerlink" href="#evolution">&para;</a></h4>
<p>In <strong>Evolution</strong> add a new calendar and address book
respectively with WebDAV. Enter the URL of the Radicale server (e.g.
<code>http://localhost:5232</code>) and your username. Clicking on the
search button will list the existing calendars and address books.</p>
<p>Adding CalDAV and CardDAV accounts in Evolution will automatically
make them available in GNOME Contacts and GNOME Calendar.</p>
</section>
<section class="level4" id="kde-pim-applications">
<h4>KDE PIM Applications <a class="headerlink" href="#kde-pim-applications">&para;</a></h4>
<p>In <strong>Kontact</strong> add a <em>DAV Groupware resource</em> to
Akonadi under <em>Settings &gt; Configure Kontact &gt; Calendar &gt;
General &gt; Calendars</em>, select the protocol (CalDAV or CardDAV),
add the URL to the Radicale collections and enter the credentials. After
synchronization of the calendar resp. addressbook items, you can manage
them in Kontact.</p>
</section>
<section class="level4" id="thunderbird">
<h4>Thunderbird <a class="headerlink" href="#thunderbird">&para;</a></h4>
<p>Add a new calendar on the network. Enter your username and the URL of
the Radicale server (e.g. <code>http://localhost:5232</code>). After
asking for your password, it will list the existing calendars.</p>
<section class="level5" id="adress-books-with-cardbook-add-on">
<h5>Adress books with CardBook add-on <a class="headerlink" href="#adress-books-with-cardbook-add-on">&para;</a></h5>
<p>Add a new address book on the network with CardDAV. Enter the URL of
the Radicale server (e.g. <code>http://localhost:5232</code>) and your
username and password. It will list your existing address books.</p>
</section>
</section>
<section class="level4" id="infcloud-caldavzap-and-carddavmate">
<h4>InfCloud, CalDavZAP and CardDavMATE <a class="headerlink" href="#infcloud-caldavzap-and-carddavmate">&para;</a></h4>
<p>You can integrate InfCloud into Radicale's web interface with by
simply downloading the latest package from <a href="https://www.inf-it.com/open-source/clients/infcloud/">InfCloud</a>
and extract the content into a folder named <code>infcloud</code> in
<code>radicale/web/internal_data/</code>.</p>
<p>No further adjustments are required as content is adjusted on the fly
(tested with 0.13.1).</p>
<p>See also <a href="https://github.com/Kozea/Radicale/wiki/Client-InfCloud">Wiki/Client
InfCloud</a>.</p>
</section>
<section class="level4" id="command-line">
<h4>Command line <a class="headerlink" href="#command-line">&para;</a></h4>
<p>This is not the recommended way of creating and managing your
calendars and address books. Use Radicale's web interface or a client
with support for it (e.g. <strong>DAVx⁵</strong>).</p>
<p>To create a new calendar run something like:</p>
<div class="sourceCode" id="cb52"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb52-1"><a aria-hidden="true" href="#cb52-1" tabindex="-1"></a><span class="ex">$</span> curl <span class="at">-u</span> user <span class="at">-X</span> MKCOL <span class="st">'http://localhost:5232/user/calendar'</span> <span class="at">--data</span> <span class="dt">\</span></span>
<span id="cb52-2"><a aria-hidden="true" href="#cb52-2" tabindex="-1"></a><span class="st">'&lt;?xml version="1.0" encoding="UTF-8" ?&gt;</span></span>
<span id="cb52-3"><a aria-hidden="true" href="#cb52-3" tabindex="-1"></a><span class="st">&lt;create xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:I="http://apple.com/ns/ical/"&gt;</span></span>
<span id="cb52-4"><a aria-hidden="true" href="#cb52-4" tabindex="-1"></a><span class="st"> &lt;set&gt;</span></span>
<span id="cb52-5"><a aria-hidden="true" href="#cb52-5" tabindex="-1"></a><span class="st"> &lt;prop&gt;</span></span>
<span id="cb52-6"><a aria-hidden="true" href="#cb52-6" tabindex="-1"></a><span class="st"> &lt;resourcetype&gt;</span></span>
<span id="cb52-7"><a aria-hidden="true" href="#cb52-7" tabindex="-1"></a><span class="st"> &lt;collection /&gt;</span></span>
<span id="cb52-8"><a aria-hidden="true" href="#cb52-8" tabindex="-1"></a><span class="st"> &lt;C:calendar /&gt;</span></span>
<span id="cb52-9"><a aria-hidden="true" href="#cb52-9" tabindex="-1"></a><span class="st"> &lt;/resourcetype&gt;</span></span>
<span id="cb52-10"><a aria-hidden="true" href="#cb52-10" tabindex="-1"></a><span class="st"> &lt;C:supported-calendar-component-set&gt;</span></span>
<span id="cb52-11"><a aria-hidden="true" href="#cb52-11" tabindex="-1"></a><span class="st"> &lt;C:comp name="VEVENT" /&gt;</span></span>
<span id="cb52-12"><a aria-hidden="true" href="#cb52-12" tabindex="-1"></a><span class="st"> &lt;C:comp name="VJOURNAL" /&gt;</span></span>
<span id="cb52-13"><a aria-hidden="true" href="#cb52-13" tabindex="-1"></a><span class="st"> &lt;C:comp name="VTODO" /&gt;</span></span>
<span id="cb52-14"><a aria-hidden="true" href="#cb52-14" tabindex="-1"></a><span class="st"> &lt;/C:supported-calendar-component-set&gt;</span></span>
<span id="cb52-15"><a aria-hidden="true" href="#cb52-15" tabindex="-1"></a><span class="st"> &lt;displayname&gt;Calendar&lt;/displayname&gt;</span></span>
<span id="cb52-16"><a aria-hidden="true" href="#cb52-16" tabindex="-1"></a><span class="st"> &lt;C:calendar-description&gt;Example calendar&lt;/C:calendar-description&gt;</span></span>
<span id="cb52-17"><a aria-hidden="true" href="#cb52-17" tabindex="-1"></a><span class="st"> &lt;I:calendar-color&gt;#ff0000ff&lt;/I:calendar-color&gt;</span></span>
<span id="cb52-18"><a aria-hidden="true" href="#cb52-18" tabindex="-1"></a><span class="st"> &lt;/prop&gt;</span></span>
<span id="cb52-19"><a aria-hidden="true" href="#cb52-19" tabindex="-1"></a><span class="st"> &lt;/set&gt;</span></span>
<span id="cb52-20"><a aria-hidden="true" href="#cb52-20" tabindex="-1"></a><span class="st">&lt;/create&gt;'</span></span></code></pre></div>
<p>To create a new address book run something like:</p>
<div class="sourceCode" id="cb53"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb53-1"><a aria-hidden="true" href="#cb53-1" tabindex="-1"></a><span class="ex">$</span> curl <span class="at">-u</span> user <span class="at">-X</span> MKCOL <span class="st">'http://localhost:5232/user/addressbook'</span> <span class="at">--data</span> <span class="dt">\</span></span>
<span id="cb53-2"><a aria-hidden="true" href="#cb53-2" tabindex="-1"></a><span class="st">'&lt;?xml version="1.0" encoding="UTF-8" ?&gt;</span></span>
<span id="cb53-3"><a aria-hidden="true" href="#cb53-3" tabindex="-1"></a><span class="st">&lt;create xmlns="DAV:" xmlns:CR="urn:ietf:params:xml:ns:carddav"&gt;</span></span>
<span id="cb53-4"><a aria-hidden="true" href="#cb53-4" tabindex="-1"></a><span class="st"> &lt;set&gt;</span></span>
<span id="cb53-5"><a aria-hidden="true" href="#cb53-5" tabindex="-1"></a><span class="st"> &lt;prop&gt;</span></span>
<span id="cb53-6"><a aria-hidden="true" href="#cb53-6" tabindex="-1"></a><span class="st"> &lt;resourcetype&gt;</span></span>
<span id="cb53-7"><a aria-hidden="true" href="#cb53-7" tabindex="-1"></a><span class="st"> &lt;collection /&gt;</span></span>
<span id="cb53-8"><a aria-hidden="true" href="#cb53-8" tabindex="-1"></a><span class="st"> &lt;CR:addressbook /&gt;</span></span>
<span id="cb53-9"><a aria-hidden="true" href="#cb53-9" tabindex="-1"></a><span class="st"> &lt;/resourcetype&gt;</span></span>
<span id="cb53-10"><a aria-hidden="true" href="#cb53-10" tabindex="-1"></a><span class="st"> &lt;displayname&gt;Address book&lt;/displayname&gt;</span></span>
<span id="cb53-11"><a aria-hidden="true" href="#cb53-11" tabindex="-1"></a><span class="st"> &lt;CR:addressbook-description&gt;Example address book&lt;/CR:addressbook-description&gt;</span></span>
<span id="cb53-12"><a aria-hidden="true" href="#cb53-12" tabindex="-1"></a><span class="st"> &lt;/prop&gt;</span></span>
<span id="cb53-13"><a aria-hidden="true" href="#cb53-13" tabindex="-1"></a><span class="st"> &lt;/set&gt;</span></span>
<span id="cb53-14"><a aria-hidden="true" href="#cb53-14" tabindex="-1"></a><span class="st">&lt;/create&gt;'</span></span></code></pre></div>
<p>The collection <code>/USERNAME</code> will be created automatically,
when the user authenticates to Radicale for the first time. Clients with
automatic discovery of collections will only show calendars and address
books that are direct children of the path <code>/USERNAME/</code>.</p>
<p>Delete the collections by running something like:</p>
<div class="sourceCode" id="cb54"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb54-1"><a aria-hidden="true" href="#cb54-1" tabindex="-1"></a><span class="ex">curl</span> <span class="at">-u</span> user <span class="at">-X</span> DELETE <span class="st">'http://localhost:5232/user/calendar'</span></span></code></pre></div>
<p>Note: requires config/option
<code>permit_delete_collection = True</code></p>
</section>
<section class="level3" id="authorization-and-rights">
<h3>Authorization and Rights <a class="headerlink" href="#authorization-and-rights">&para;</a></h3>
<p>This section describes the format of the rights file for the
<code>from_file</code> authentication backend. The configuration option
<code>file</code> in the <code>rights</code> section must point to the
rights file.</p>
<p>The recommended rights method is <code>owner_only</code>. If access
is granted to calendars and address books outside the home directory of
users (that's <code>/USERNAME/</code>), clients will not detect these
collections automatically, and will not show them to the users. This is
only useful if you access calendars and address books directly via
URL.</p>
<p>An example rights file:</p>
<div class="sourceCode" id="cb55"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb55-1"><a aria-hidden="true" href="#cb55-1" tabindex="-1"></a><span class="co"># Allow reading root collection for authenticated users</span></span>
<span id="cb55-2"><a aria-hidden="true" href="#cb55-2" tabindex="-1"></a><span class="kw">[root]</span></span>
<span id="cb55-3"><a aria-hidden="true" href="#cb55-3" tabindex="-1"></a><span class="dt">user: .+</span></span>
<span id="cb55-4"><a aria-hidden="true" href="#cb55-4" tabindex="-1"></a><span class="dt">collection:</span></span>
<span id="cb55-5"><a aria-hidden="true" href="#cb55-5" tabindex="-1"></a><span class="dt">permissions: R</span></span>
<span id="cb55-6"><a aria-hidden="true" href="#cb55-6" tabindex="-1"></a></span>
<span id="cb55-7"><a aria-hidden="true" href="#cb55-7" tabindex="-1"></a><span class="co"># Allow reading and writing principal collection (same as username)</span></span>
<span id="cb55-8"><a aria-hidden="true" href="#cb55-8" tabindex="-1"></a><span class="kw">[principal]</span></span>
<span id="cb55-9"><a aria-hidden="true" href="#cb55-9" tabindex="-1"></a><span class="dt">user: .+</span></span>
<span id="cb55-10"><a aria-hidden="true" href="#cb55-10" tabindex="-1"></a><span class="dt">collection: {user}</span></span>
<span id="cb55-11"><a aria-hidden="true" href="#cb55-11" tabindex="-1"></a><span class="dt">permissions: RW</span></span>
<span id="cb55-12"><a aria-hidden="true" href="#cb55-12" tabindex="-1"></a></span>
<span id="cb55-13"><a aria-hidden="true" href="#cb55-13" tabindex="-1"></a><span class="co"># Allow reading and writing calendars and address books that are direct</span></span>
<span id="cb55-14"><a aria-hidden="true" href="#cb55-14" tabindex="-1"></a><span class="co"># children of the principal collection</span></span>
<span id="cb55-15"><a aria-hidden="true" href="#cb55-15" tabindex="-1"></a><span class="kw">[calendars]</span></span>
<span id="cb55-16"><a aria-hidden="true" href="#cb55-16" tabindex="-1"></a><span class="dt">user: .+</span></span>
<span id="cb55-17"><a aria-hidden="true" href="#cb55-17" tabindex="-1"></a><span class="dt">collection: {user}/</span><span class="kw">[^/]</span><span class="dt">+</span></span>
<span id="cb55-18"><a aria-hidden="true" href="#cb55-18" tabindex="-1"></a><span class="dt">permissions: rw</span></span></code></pre></div>
<p>The titles of the sections are ignored (but must be unique). The keys
<code>user</code> and <code>collection</code> contain regular
expressions, that are matched against the username and the path of the
collection. Permissions from the first matching section are used. If no
section matches, access gets denied.</p>
<p>The username is empty for anonymous users. Therefore, the regex
<code>.+</code> only matches authenticated users and <code>.*</code>
matches everyone (including anonymous users).</p>
<p>The path of the collection is separated by <code>/</code> and has no
leading or trailing <code>/</code>. Therefore, the path of the root
collection is empty.</p>
<p>In the <code>collection</code> regex you can use <code>{user}</code>
and get groups from the <code>user</code> regex with <code>{0}</code>,
<code>{1}</code>, etc.</p>
<p>In consequence of the parameter substitution you have to write
<code>{{</code> and <code>}}</code> if you want to use regular curly
braces in the <code>user</code> and <code>collection</code> regexes.</p>
<p>The following <code>permissions</code> are recognized:</p>
<ul>
<li><strong>R:</strong> read collections (excluding address books and
calendars)</li>
<li><strong>r:</strong> read address book and calendar collections</li>
<li><strong>i:</strong> subset of <strong>r</strong> that only allows
direct access via HTTP method GET (CalDAV/CardDAV is susceptible to
expensive search requests)</li>
<li><strong>W:</strong> write collections (excluding address books and
calendars)</li>
<li><strong>w:</strong> write address book and calendar collections</li>
<li><strong>D:</strong> allow deleting a collection in case
<code>permit_delete_collection=False</code> <em>(&gt;= 3.3.0)</em></li>
<li><strong>d:</strong> deny deleting a collection in case
<code>permit_delete_collection=True</code> <em>(&gt;= 3.3.0)</em></li>
<li><strong>O:</strong> allow overwriting a collection in case
<code>permit_overwrite_collection=False</code></li>
<li><strong>o:</strong> deny overwriting a collection in case
<code>permit_overwrite_collection=True</code></li>
</ul>
</section>
<section class="level3" id="storage-2">
<h3>Storage <a class="headerlink" href="#storage-2">&para;</a></h3>
<p>This document describes the layout and format of the file system
storage, the <code>multifilesystem</code> backend.</p>
<p>It is safe to access and manipulate the data by hand or with scripts.
Scripts can be invoked manually, periodically (e.g. using <a href="https://manpages.debian.org/unstable/cron/cron.8.en.html">cron</a>)
or after each change to the storage with the configuration option
<code>hook</code> in the <code>storage</code> section (e.g. <a href="#versioning-collections-with-git">Versioning collections with
Git</a>).</p>
<section class="level4" id="layout">
<h4>Layout <a class="headerlink" href="#layout">&para;</a></h4>
<p>The file system comprises the following files and folders:</p>
<ul>
<li><code>.Radicale.lock</code>: The lock file for locking the
storage.</li>
<li><code>collection-root</code>: This folder contains all collections
and items.</li>
</ul>
<p>Each collection is represented by a folder. This folder may contain
the file <code>.Radicale.props</code> with all WebDAV properties of the
collection encoded as <a href="https://en.wikipedia.org/wiki/JSON">JSON</a>.</p>
<p>Each item in a calendar or address book collection is represented by
a file containing the item's iCalendar resp. vCard data.</p>
<p>All files and folders, whose names start with a dot but not with
<code>.Radicale.</code> (internal files) are ignored.</p>
<p>Syntax errors in any of the files will cause all requests accessing
the faulty data to fail. The logging output should contain the names of
the culprits.</p>
<p>Caches and sync-tokens are stored in the <code>.Radicale.cache</code>
folder inside of collections. This folder may be created or modified,
while the storage is locked for shared access. In theory, it should be
safe to delete the folder. Caches will be recreated automatically and
clients will be told that their sync-token is not valid anymore.</p>
<p>You may encounter files or folders that start with
<code>.Radicale.tmp-</code>. Radicale uses them for atomic creation and
deletion of files and folders. They should be deleted after requests are
finished but it is possible that they are left behind when Radicale or
the computer crashes. You can safely delete them.</p>
</section>
<section class="level4" id="locking">
<h4>Locking <a class="headerlink" href="#locking">&para;</a></h4>
<p>When the data is accessed by hand or by an externally invoked script,
the storage must be locked. The storage can be locked for exclusive or
shared access. It prevents Radicale from reading or writing the file
system. The storage is locked with exclusive access while the
<code>hook</code> runs.</p>
<section class="level5" id="linux-shell-scripts">
<h5>Linux shell scripts <a class="headerlink" href="#linux-shell-scripts">&para;</a></h5>
<p>Use the <a href="https://manpages.debian.org/unstable/util-linux/flock.1.en.html">flock</a>
utility to acquire exclusive or shared locks for the commands you want
to run on Radicale's data.</p>
<div class="sourceCode" id="cb56"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb56-1"><a aria-hidden="true" href="#cb56-1" tabindex="-1"></a><span class="co"># Exclusive lock for COMMAND</span></span>
<span id="cb56-2"><a aria-hidden="true" href="#cb56-2" tabindex="-1"></a><span class="ex">$</span> flock <span class="at">--exclusive</span> /path/to/storage/.Radicale.lock COMMAND</span>
<span id="cb56-3"><a aria-hidden="true" href="#cb56-3" tabindex="-1"></a><span class="co"># Shared lock for COMMAND</span></span>
<span id="cb56-4"><a aria-hidden="true" href="#cb56-4" tabindex="-1"></a><span class="ex">$</span> flock <span class="at">--shared</span> /path/to/storage/.Radicale.lock COMMAND</span></code></pre></div>
</section>
<section class="level5" id="linux-and-macos">
<h5>Linux and MacOS <a class="headerlink" href="#linux-and-macos">&para;</a></h5>
<p>Use the <a href="https://manpages.debian.org/unstable/manpages-dev/flock.2.en.html">flock</a>
syscall. Python provides it in the <a href="https://docs.python.org/3/library/fcntl.html#fcntl.flock">fcntl</a>
module.</p>
</section>
<section class="level5" id="windows-1">
<h5>Windows <a class="headerlink" href="#windows-1">&para;</a></h5>
<p>Use <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa365202%28v=vs.85%29.aspx">LockFile</a>
for exclusive access or <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa365203%28v=vs.85%29.aspx">LockFileEx</a>
which also supports shared access. Setting
<code>nNumberOfBytesToLockLow</code> to <code>1</code> and
<code>nNumberOfBytesToLockHigh</code> to <code>0</code> works.</p>
</section>
</section>
<section class="level4" id="manually-creating-collections">
<h4>Manually creating collections <a class="headerlink" href="#manually-creating-collections">&para;</a></h4>
<p>To create a new collection, you need to create the corresponding
folder in the file system storage (e.g.
<code>collection-root/user/calendar</code>). To indicate to Radicale and
clients that the collection is a calendar, you have to create the file
<code>.Radicale.props</code> with the following content in the
folder:</p>
<div class="sourceCode" id="cb57"><pre class="sourceCode json"><code class="sourceCode json"><span id="cb57-1"><a aria-hidden="true" href="#cb57-1" tabindex="-1"></a><span class="fu">{</span><span class="dt">"tag"</span><span class="fu">:</span> <span class="st">"VCALENDAR"</span><span class="fu">}</span></span></code></pre></div>
<p>The calendar is now available at the URL path (e.g.
<code>/user/calendar</code>). For address books
<code>.Radicale.props</code> must contain:</p>
<div class="sourceCode" id="cb58"><pre class="sourceCode json"><code class="sourceCode json"><span id="cb58-1"><a aria-hidden="true" href="#cb58-1" tabindex="-1"></a><span class="fu">{</span><span class="dt">"tag"</span><span class="fu">:</span> <span class="st">"VADDRESSBOOK"</span><span class="fu">}</span></span></code></pre></div>
<p>Calendar and address book collections must not have any child
collections. Clients with automatic discovery of collections will only
show calendars and address books that are direct children of the path
<code>/USERNAME/</code>.</p>
<p>Delete collections by deleting the corresponding folders.</p>
</section>
</section>
<section class="level3" id="logging-overview">
<h3>Logging overview <a class="headerlink" href="#logging-overview">&para;</a></h3>
<p>Radicale logs to <code>stderr</code>. The verbosity of the log output
can be controlled with <code>--debug</code> command line argument or the
<code>level</code> configuration option in the <a href="#logging">logging</a> section.</p>
</section>
<section class="level3" id="architecture">
<h3>Architecture <a class="headerlink" href="#architecture">&para;</a></h3>
<p>Radicale is a small piece of software, but understanding it is not as
easy as it seems. But don't worry, reading this short section is enough
to understand what a CalDAV/CardDAV server is, and how Radicale's code
is organized.</p>
<section class="level4" id="protocol-overview">
<h4>Protocol overview <a class="headerlink" href="#protocol-overview">&para;</a></h4>
<p>Here is a simple overview of the global architecture for reaching a
calendar or an address book through network:</p>
<div class="tableContainer"><table>
<thead>
<tr class="header">
<th>Part</th>
<th>Layer</th>
<th>Protocol or Format</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>Server</td>
<td>Calendar/Contact Storage</td>
<td>iCal/vCard</td>
</tr>
<tr class="even">
<td>''</td>
<td>Calendar/Contact Server</td>
<td>CalDAV/CardDAV Server</td>
</tr>
<tr class="odd">
<td>Transfer</td>
<td>Network</td>
<td>CalDAV/CardDAV (HTTP + TLS)</td>
</tr>
<tr class="even">
<td>Client</td>
<td>Calendar/Contact Client</td>
<td>CalDAV/CardDAV Client</td>
</tr>
<tr class="odd">
<td>''</td>
<td>GUI</td>
<td>Terminal, GTK, Web interface, etc.</td>
</tr>
</tbody>
</table></div>
<p>Radicale is <strong>only the server part</strong> of this
architecture.</p>
<p>Please note:</p>
<ul>
<li>CalDAV and CardDAV are extension protocols of WebDAV,</li>
<li>WebDAV is an extension of the HTTP protocol.</li>
</ul>
<p>Radicale being a CalDAV/CardDAV server, can also be seen as a special
WebDAV and HTTP server.</p>
<p>Radicale is <strong>not the client part</strong> of this
architecture. It means that Radicale never draws calendars, address
books, events and contacts on the screen. It only stores them and give
the possibility to share them online with other people.</p>
<p>If you want to see or edit your events and your contacts, you have to
use another software called a client, that can be a "normal"
applications with icons and buttons, a terminal or another web
application.</p>
</section>
<section class="level4" id="code-architecture">
<h4>Code Architecture <a class="headerlink" href="#code-architecture">&para;</a></h4>
<p>The <code>radicale</code> package offers the following modules.</p>
<ul>
<li><p><code>__init__</code> : Contains the entry point for
WSGI.</p></li>
<li><p><code>__main__</code> : Provides the entry point for the
<code>radicale</code> executable and includes the command line parser.
It loads configuration files from the default (or specified) paths and
starts the internal server.</p></li>
<li><p><code>app</code> : This is the core part of Radicale, with the
code for the CalDAV/CardDAV server. The code managing the different HTTP
requests according to the CalDAV/CardDAV specification can be found
here.</p></li>
<li><p><code>auth</code> : Used for authenticating users based on
username and password, mapping usernames to internal users and
optionally retrieving credentials from the environment.</p></li>
<li><p><code>config</code> : Contains the code for managing
configuration and loading settings from files.</p></li>
<li><p><code>&igrave;tem</code> : Internal representation of address book and
calendar entries. Based on <a href="https://github.com/py-vobject/vobject/">VObject</a>.</p></li>
<li><p><code>log</code> : The logger for Radicale based on the default
Python logging module.</p></li>
<li><p><code>rights</code> : This module is used by Radicale to manage
access rights to collections, address books and calendars.</p></li>
<li><p><code>server</code> : The integrated HTTP server for standalone
use.</p></li>
<li><p><code>storage</code> : This module contains the classes
representing collections in Radicale and the code for storing and
loading them in the filesystem.</p></li>
<li><p><code>web</code> : This module contains the web
interface.</p></li>
<li><p><code>utils</code> : Contains general helper functions.</p></li>
<li><p><code>httputils</code> : Contains helper functions for working
with HTTP.</p></li>
<li><p><code>pathutils</code> : Helper functions for working with paths
and the filesystem.</p></li>
<li><p><code>xmlutils</code> : Helper functions for working with the XML
part of CalDAV/CardDAV requests and responses. It's based on the
ElementTree XML API.</p></li>
</ul>
</section>
</section>
<section class="level3" id="plugins">
<h3>Plugins <a class="headerlink" href="#plugins">&para;</a></h3>
<p>Radicale can be extended by plugins for authentication, rights
management and storage. Plugins are <strong>python</strong> modules.</p>
<section class="level4" id="getting-started-with-plugin-development">
<h4>Getting started with plugin development <a class="headerlink" href="#getting-started-with-plugin-development">&para;</a></h4>
<p>To get started we walk through the creation of a simple
authentication plugin, that accepts login attempts with a static
password.</p>
<p>The easiest way to develop and install <strong>python</strong>
modules is <a href="https://docs.python.org/3/distutils/setupscript.html">Distutils</a>.
For a minimal setup create the file <code>setup.py</code> with the
following content in an empty folder:</p>
<div class="sourceCode" id="cb59"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb59-1"><a aria-hidden="true" href="#cb59-1" tabindex="-1"></a><span class="co">#!/usr/bin/env python3</span></span>
<span id="cb59-2"><a aria-hidden="true" href="#cb59-2" tabindex="-1"></a></span>
<span id="cb59-3"><a aria-hidden="true" href="#cb59-3" tabindex="-1"></a><span class="im">from</span> distutils.core <span class="im">import</span> setup</span>
<span id="cb59-4"><a aria-hidden="true" href="#cb59-4" tabindex="-1"></a></span>
<span id="cb59-5"><a aria-hidden="true" href="#cb59-5" tabindex="-1"></a>setup(name<span class="op">=</span><span class="st">"radicale_static_password_auth"</span>,</span>
<span id="cb59-6"><a aria-hidden="true" href="#cb59-6" tabindex="-1"></a> packages<span class="op">=</span>[<span class="st">"radicale_static_password_auth"</span>])</span></code></pre></div>
<p>In the same folder create the sub-folder
<code>radicale_static_password_auth</code>. The folder must have the
same name as specified in <code>packages</code> above.</p>
<p>Create the file <code>__init__.py</code> in the
<code>radicale_static_password_auth</code> folder with the following
content:</p>
<div class="sourceCode" id="cb60"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb60-1"><a aria-hidden="true" href="#cb60-1" tabindex="-1"></a><span class="im">from</span> radicale.auth <span class="im">import</span> BaseAuth</span>
<span id="cb60-2"><a aria-hidden="true" href="#cb60-2" tabindex="-1"></a><span class="im">from</span> radicale.log <span class="im">import</span> logger</span>
<span id="cb60-3"><a aria-hidden="true" href="#cb60-3" tabindex="-1"></a></span>
<span id="cb60-4"><a aria-hidden="true" href="#cb60-4" tabindex="-1"></a>PLUGIN_CONFIG_SCHEMA <span class="op">=</span> {<span class="st">"auth"</span>: {</span>
<span id="cb60-5"><a aria-hidden="true" href="#cb60-5" tabindex="-1"></a> <span class="st">"password"</span>: {<span class="st">"value"</span>: <span class="st">""</span>, <span class="st">"type"</span>: <span class="bu">str</span>}}}</span>
<span id="cb60-6"><a aria-hidden="true" href="#cb60-6" tabindex="-1"></a></span>
<span id="cb60-7"><a aria-hidden="true" href="#cb60-7" tabindex="-1"></a></span>
<span id="cb60-8"><a aria-hidden="true" href="#cb60-8" tabindex="-1"></a><span class="kw">class</span> Auth(BaseAuth):</span>
<span id="cb60-9"><a aria-hidden="true" href="#cb60-9" tabindex="-1"></a> <span class="kw">def</span> <span class="fu">__init__</span>(<span class="va">self</span>, configuration):</span>
<span id="cb60-10"><a aria-hidden="true" href="#cb60-10" tabindex="-1"></a> <span class="bu">super</span>().<span class="fu">__init__</span>(configuration.copy(PLUGIN_CONFIG_SCHEMA))</span>
<span id="cb60-11"><a aria-hidden="true" href="#cb60-11" tabindex="-1"></a></span>
<span id="cb60-12"><a aria-hidden="true" href="#cb60-12" tabindex="-1"></a> <span class="kw">def</span> _login(<span class="va">self</span>, login, password):</span>
<span id="cb60-13"><a aria-hidden="true" href="#cb60-13" tabindex="-1"></a> <span class="co"># Get password from configuration option</span></span>
<span id="cb60-14"><a aria-hidden="true" href="#cb60-14" tabindex="-1"></a> static_password <span class="op">=</span> <span class="va">self</span>.configuration.get(<span class="st">"auth"</span>, <span class="st">"password"</span>)</span>
<span id="cb60-15"><a aria-hidden="true" href="#cb60-15" tabindex="-1"></a> <span class="co"># Check authentication</span></span>
<span id="cb60-16"><a aria-hidden="true" href="#cb60-16" tabindex="-1"></a> logger.info(<span class="st">"Login attempt by </span><span class="sc">%r</span><span class="st"> with password </span><span class="sc">%r</span><span class="st">"</span>,</span>
<span id="cb60-17"><a aria-hidden="true" href="#cb60-17" tabindex="-1"></a> login, password)</span>
<span id="cb60-18"><a aria-hidden="true" href="#cb60-18" tabindex="-1"></a> <span class="cf">if</span> password <span class="op">==</span> static_password:</span>
<span id="cb60-19"><a aria-hidden="true" href="#cb60-19" tabindex="-1"></a> <span class="cf">return</span> login</span>
<span id="cb60-20"><a aria-hidden="true" href="#cb60-20" tabindex="-1"></a> <span class="cf">return</span> <span class="st">""</span></span></code></pre></div>
<p>Install the python module by running the following command in the
same folder as <code>setup.py</code>:</p>
<div class="sourceCode" id="cb61"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb61-1"><a aria-hidden="true" href="#cb61-1" tabindex="-1"></a><span class="ex">python3</span> <span class="at">-m</span> pip install .</span></code></pre></div>
<p>To make use this great creation in Radicale, set the configuration
option <code>type</code> in the <code>auth</code> section to
<code>radicale_static_password_auth</code>:</p>
<div class="sourceCode" id="cb62"><pre class="sourceCode ini"><code class="sourceCode ini"><span id="cb62-1"><a aria-hidden="true" href="#cb62-1" tabindex="-1"></a><span class="kw">[auth]</span></span>
<span id="cb62-2"><a aria-hidden="true" href="#cb62-2" tabindex="-1"></a><span class="dt">type </span><span class="ot">=</span><span class="st"> radicale_static_password_auth</span></span>
<span id="cb62-3"><a aria-hidden="true" href="#cb62-3" tabindex="-1"></a><span class="dt">password </span><span class="ot">=</span><span class="st"> secret</span></span></code></pre></div>
<p>You can uninstall the module with:</p>
<div class="sourceCode" id="cb63"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb63-1"><a aria-hidden="true" href="#cb63-1" tabindex="-1"></a><span class="ex">python3</span> <span class="at">-m</span> pip uninstall radicale_static_password_auth</span></code></pre></div>
</section>
<section class="level4" id="authentication-plugins">
<h4>Authentication plugins <a class="headerlink" href="#authentication-plugins">&para;</a></h4>
<p>This plugin type is used to check login credentials. The module must
contain a class <code>Auth</code> that extends
<code>radicale.auth.BaseAuth</code>. Take a look at the file
<code>radicale/auth/__init__.py</code> in Radicale's source code for
more information.</p>
</section>
<section class="level4" id="rights-management-plugins">
<h4>Rights management plugins <a class="headerlink" href="#rights-management-plugins">&para;</a></h4>
<p>This plugin type is used to check if a user has access to a path. The
module must contain a class <code>Rights</code> that extends
<code>radicale.rights.BaseRights</code>. Take a look at the file
<code>radicale/rights/__init__.py</code> in Radicale's source code for
more information.</p>
</section>
<section class="level4" id="web-plugins">
<h4>Web plugins <a class="headerlink" href="#web-plugins">&para;</a></h4>
<p>This plugin type is used to provide the web interface for Radicale.
The module must contain a class <code>Web</code> that extends
<code>radicale.web.BaseWeb</code>. Take a look at the file
<code>radicale/web/__init__.py</code> in Radicale's source code for more
information.</p>
</section>
<section class="level4" id="storage-plugins">
<h4>Storage plugins <a class="headerlink" href="#storage-plugins">&para;</a></h4>
<p>This plugin is used to store collections and items. The module must
contain a class <code>Storage</code> that extends
<code>radicale.storage.BaseStorage</code>. Take a look at the file
<code>radicale/storage/__init__.py</code> in Radicale's source code for
more information.</p>
</section>
</section>
</section>
<section class="level2" id="contribute">
<h2>Contribute <a class="headerlink" href="#contribute">&para;</a></h2>
<section class="level4" id="report-bugs">
<h4>Report Bugs <a class="headerlink" href="#report-bugs">&para;</a></h4>
<p>Found a bug? Want a new feature? Report a new issue on the <a href="https://github.com/Kozea/Radicale/issues">Radicale
bug-tracker</a>.</p>
</section>
<section class="level4" id="hack">
<h4>Hack <a class="headerlink" href="#hack">&para;</a></h4>
<p>Interested in hacking? Feel free to clone the <a href="https://github.com/Kozea/Radicale">git repository on GitHub</a> if
you want to add new features, fix bugs or update the documentation.</p>
</section>
<section class="level4" id="documentation-2">
<h4>Documentation <a class="headerlink" href="#documentation-2">&para;</a></h4>
<p>To change or complement the documentation create a pull request to <a href="https://github.com/Kozea/Radicale/blob/master/DOCUMENTATION.md">DOCUMENTATION.md</a>.</p>
</section>
</section>
<section class="level2" id="download">
<h2>Download <a class="headerlink" href="#download">&para;</a></h2>
<section class="level4" id="pypi">
<h4>PyPI <a class="headerlink" href="#pypi">&para;</a></h4>
<p>Radicale is <a href="https://pypi.python.org/pypi/Radicale/">available on PyPI</a>. To
install, just type as superuser:</p>
<div class="sourceCode" id="cb64"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb64-1"><a aria-hidden="true" href="#cb64-1" tabindex="-1"></a><span class="ex">python3</span> <span class="at">-m</span> pip install <span class="at">--upgrade</span> radicale</span></code></pre></div>
</section>
<section class="level4" id="git-repository">
<h4>Git Repository <a class="headerlink" href="#git-repository">&para;</a></h4>
<p>If you want the development version of Radicale, take a look at the
<a href="https://github.com/Kozea/Radicale/">git repository on
GitHub</a>, or install it directly with:</p>
<div class="sourceCode" id="cb65"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb65-1"><a aria-hidden="true" href="#cb65-1" tabindex="-1"></a><span class="ex">python3</span> <span class="at">-m</span> pip install <span class="at">--upgrade</span> https://github.com/Kozea/Radicale/archive/master.tar.gz</span></code></pre></div>
<p>You can also download the content of the repository as an <a href="https://github.com/Kozea/Radicale/tarball/master">archive</a>.</p>
</section>
<section class="level4" id="source-packages">
<h4>Source Packages <a class="headerlink" href="#source-packages">&para;</a></h4>
<p>You can find the source packages of all releases on <a href="https://github.com/Kozea/Radicale/releases">GitHub</a>.</p>
</section>
<section class="level4" id="docker">
<h4>Docker <a class="headerlink" href="#docker">&para;</a></h4>
<p>Radicale is available as a <a href="https://github.com/Kozea/Radicale/pkgs/container/radicale">Docker
image</a> for platforms <code>linux/amd64</code> and
<code>linux/arm64</code>. To install the latest version, run:</p>
<div class="sourceCode" id="cb66"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb66-1"><a aria-hidden="true" href="#cb66-1" tabindex="-1"></a><span class="ex">docker</span> pull ghcr.io/kozea/radicale:latest</span></code></pre></div>
<p>An example <code>docker-compose.yml</code> and detailed instructions
will soon be updated.</p>
</section>
<section class="level4" id="linux-distribution-packages">
<h4>Linux Distribution Packages <a class="headerlink" href="#linux-distribution-packages">&para;</a></h4>
<p>Radicale has been packaged for:</p>
<ul>
<li><a href="https://www.archlinux.org/packages/community/any/radicale/">ArchLinux</a>
by David Runge</li>
<li><a href="https://packages.debian.org/radicale">Debian</a> by Jonas
Smedegaard</li>
<li><a href="https://packages.gentoo.org/packages/www-apps/radicale">Gentoo</a>
by Ren&eacute; Neumann, Maxim Koltsov and Manuel R&uuml;ger</li>
<li><a href="https://src.fedoraproject.org/rpms/radicale">Fedora/EnterpriseLinux</a>
by Jorti and Peter Bieringer</li>
<li><a href="http://madb.mageia.org/package/show/application/0/name/radicale">Mageia</a>
by Jani V&auml;limaa</li>
<li><a href="http://openports.se/productivity/radicale">OpenBSD</a> by
Sergey Bronnikov, Stuart Henderson and Ian Darwin</li>
<li><a href="http://software.opensuse.org/package/Radicale?search_term=radicale">openSUSE</a>
by &Aacute;kos Sz&odblac;ts and Rueckert</li>
<li><a href="http://code.activestate.com/pypm/radicale/">PyPM</a></li>
<li><a href="http://schoepfer.info/slackware.xhtml#packages-network">Slackware</a>
by Johannes Sch&ouml;pfer</li>
<li><a href="http://packages.trisquel.info/search?searchon=names&keywords=radicale">Trisquel</a></li>
<li><a href="http://packages.ubuntu.com/radicale">Ubuntu</a> by the MOTU
and Jonas Smedegaard</li>
</ul>
<p>Radicale is also <a href="https://cloudron.io/button.html?app=org.radicale.cloudronapp2">available
on Cloudron</a>.</p>
<p>If you are interested in creating packages for other Linux
distributions, read the <a href="#contribute">"Contribute"
section</a>.</p>
</section>
</section>
<section class="level2" id="about">
<h2>About <a class="headerlink" href="#about">&para;</a></h2>
<section class="level4" id="main-goals">
<h4>Main Goals <a class="headerlink" href="#main-goals">&para;</a></h4>
<p>Radicale is a complete calendar and contact storing and manipulating
solution. It can store multiple calendars and multiple address
books.</p>
<p>Calendar and contact manipulation is available from both local and
distant accesses, possibly limited through authentication policies.</p>
<p>It aims to be a lightweight solution, easy to use, easy to install,
easy to configure. As a consequence, it requires few software
dependencies and is preconfigured to work out-of-the-box.</p>
<p>Radicale is written in Python. It runs on most of the UNIX-like
platforms (Linux, *BSD, macOS) and Windows. It is free and open-source
software.</p>
</section>
<section class="level4" id="what-radicale-will-never-be">
<h4>What Radicale Will Never Be <a class="headerlink" href="#what-radicale-will-never-be">&para;</a></h4>
<p>Radicale is a server, not a client. No interfaces will be created to
work with the server.</p>
<p>CalDAV and CardDAV are not perfect protocols. We think that their
main problem is their complexity, that is why we decided not to
implement the whole standard but just enough to understand some of its
client-side implementations.</p>
<p>CalDAV and CardDAV are the best open standards available, and they
are quite widely used by both clients and servers. We decided to use it,
and we will not use another one.</p>
</section>
<section class="level4" id="technical-choices">
<h4>Technical Choices <a class="headerlink" href="#technical-choices">&para;</a></h4>
<p>Important global development choices have been decided before writing
code. They are very useful to understand why the Radicale Project is
different from other CalDAV and CardDAV servers, and why features are
included or not in the code.</p>
<section class="level5" id="oriented-to-calendar-and-contact-user-agents">
<h5>Oriented to Calendar and Contact User Agents <a class="headerlink" href="#oriented-to-calendar-and-contact-user-agents">&para;</a></h5>
<p>Calendar and contact servers work with calendar and contact clients,
using a defined protocol. CalDAV and CardDAV are good protocols,
covering lots of features and use cases, but it is quite hard to
implement fully.</p>
<p>Some calendar servers have been created to follow the CalDAV and
CardDAV RFCs as much as possible: <a href="http://www.davical.org/">Davical</a>, <a href="http://sabre.io/baikal/">Ba&iuml;kal</a> and <a href="http://trac.calendarserver.org/">Darwin Calendar Server</a>, for
example, are much more respectful of CalDAV and CardDAV and can be used
with many clients. They are very good choices if you want to develop and
test new CalDAV clients, or if you have a possibly heterogeneous list of
user agents.</p>
<p>Even if it tries it best to follow the RFCs, Radicale does not and
<strong>will not</strong> blindly implement the CalDAV and CardDAV
standards. It is mainly designed to support the CalDAV and CardDAV
implementations of different clients.</p>
</section>
<section class="level5" id="simple">
<h5>Simple <a class="headerlink" href="#simple">&para;</a></h5>
<p>Radicale is designed to be simple to install, simple to configure,
simple to use.</p>
<p>The installation is very easy, particularly with Linux: one
dependency, no superuser rights needed, no configuration required, no
database. Installing and launching the main script out-of-the-box, as a
normal user, are often the only steps to have a simple remote calendar
and contact access.</p>
<p>Contrary to other servers that are often complicated, require high
privileges or need a strong configuration, the Radicale Server can
(sometimes, if not often) be launched in a couple of minutes, if you
follow the <a href="#simple-5-minute-setup">tutorial</a>.</p>
</section>
<section class="level5" id="lazy">
<h5>Lazy <a class="headerlink" href="#lazy">&para;</a></h5>
<p>The CalDAV RFC defines what must be done, what can be done and what
cannot be done. Many violations of the protocol are totally defined and
behaviors are given in such cases.</p>
<p>Radicale often assumes that the clients are perfect and that protocol
violations do not exist. That is why most of the errors in client
requests have undetermined consequences for the lazy server that can
reply good answers, bad answers, or even no answer.</p>
</section>
</section>
<section class="level4 last" id="history">
<h4>History <a class="headerlink" href="#history">&para;</a></h4>
<p>Radicale has been started as a (free topic) stupid school project
replacing another (assigned topic) even more stupid school project.</p>
<p>At the beginning, it was just a proof-of-concept. The main goal was
to write a small, dirty and simple CalDAV server working with Lightning,
using no external libraries. That's how we created a piece of code
that's (quite) easy to understand, to use and to hack.</p>
<p>The <a href="https://github.com/Kozea/Radicale/commit/b1591aea">first
lines</a> have been added to the SVN (!) repository as I was drinking
(many) beers at the very end of 2008 (Python 2.6 and 3.0 were just
released). It's now packaged for a growing number of Linux
distributions.</p>
<p>And that was fun going from here to there thanks to you!</p>
</section>
</section>
</div>
</main>
</html>