# Radicale CalDAV/CardDAV Configuration for OpenCloud
# Authentication is handled by OpenCloud proxy via X-Remote-User header

[server]
hosts = 0.0.0.0:5232

[auth]
# OpenCloud proxy sets X-Remote-User header after authentication
type = http_x_remote_user

[rights]
# Each user owns their own collections
type = owner_only

[storage]
# Data stored in /var/lib/radicale/collections
type = multifilesystem
filesystem_folder = /var/lib/radicale/collections

# Create default calendar and addressbook for new users
predefined_collections = {
    "def-addressbook": {
       "D:displayname": "Personal Address Book",
       "tag": "VADDRESSBOOK"
    },
    "def-calendar": {
       "C:supported-calendar-component-set": "VEVENT,VJOURNAL,VTODO",
       "D:displayname": "Personal Calendar",
       "tag": "VCALENDAR"
    }
  }

[web]
# Disable web UI - access via OpenCloud
type = none

[logging]
level = info
