mirror of
https://github.com/opencloud-eu/opencloud-compose.git
synced 2026-10-07 11:28:15 +08:00
Compare commits
15 Commits
00451c538f
...
radicale-c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f21b38d46 | ||
|
|
442017268a | ||
|
|
b31c3943fd | ||
|
|
cb23d6af18 | ||
|
|
8a1193f2d4 | ||
|
|
18dc807be0 | ||
|
|
0fab6e73a0 | ||
|
|
871b6ae4c8 | ||
|
|
f8b24d5200 | ||
|
|
8826153af8 | ||
|
|
6ed456d3df | ||
|
|
c092407fcd | ||
|
|
8f79c17270 | ||
|
|
dc14e7e10a | ||
|
|
323b2c4aa4 |
@@ -215,6 +215,11 @@ This setup includes:
|
|||||||
- Radicale as a CalDAV (calendars, to-do lists) and CardDAV (contacts) server
|
- Radicale as a CalDAV (calendars, to-do lists) and CardDAV (contacts) server
|
||||||
- Users access to a Personal Calendar and Addressbook
|
- Users access to a Personal Calendar and Addressbook
|
||||||
|
|
||||||
|
Clients connect to `https://<your-domain>/caldav/` (calendar) and
|
||||||
|
`https://<your-domain>/carddav/` (contacts) — note the required trailing
|
||||||
|
slash — using an App Token as password. See [radicale/README.md](radicale/README.md)
|
||||||
|
for client setup (GNOME Online Accounts, Thunderbird) and troubleshooting.
|
||||||
|
|
||||||
### With Monitoring
|
### With Monitoring
|
||||||
|
|
||||||
Enable monitoring capabilities with metrics endpoints using either method:
|
Enable monitoring capabilities with metrics endpoints using either method:
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ directives:
|
|||||||
style-src:
|
style-src:
|
||||||
- '''self'''
|
- '''self'''
|
||||||
- '''unsafe-inline'''
|
- '''unsafe-inline'''
|
||||||
|
- 'blob:'
|
||||||
worker-src:
|
worker-src:
|
||||||
- "'self'"
|
- "'self'"
|
||||||
- 'blob:'
|
- 'blob:'
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# This adds four additional routes to the proxy. Forwarding
|
# This adds four additional routes to the proxy, forwarding requests
|
||||||
# request on '/carddav/', '/caldav/' and the respective '/.well-knwown'
|
# on '/caldav/', '/carddav/' and the respective '/.well-known'
|
||||||
# endpoints to the radicale container and setting the required headers.
|
# endpoints to the radicale container and setting the required headers.
|
||||||
|
#
|
||||||
|
# Client URLs (trailing slash required, see radicale/README.md):
|
||||||
|
# CalDAV: https://<your-domain>/caldav/
|
||||||
|
# CardDAV: https://<your-domain>/carddav/
|
||||||
additional_policies:
|
additional_policies:
|
||||||
- name: default
|
- name: default
|
||||||
routes:
|
routes:
|
||||||
@@ -10,10 +14,15 @@ additional_policies:
|
|||||||
skip_x_access_token: true
|
skip_x_access_token: true
|
||||||
additional_headers:
|
additional_headers:
|
||||||
- X-Script-Name: /caldav
|
- X-Script-Name: /caldav
|
||||||
|
# The '.well-known' endpoints are 'unprotected' so that DAV clients
|
||||||
|
# can discover the CalDAV/CardDAV URLs (RFC 6764) before they
|
||||||
|
# authenticate. Radicale only ever answers these paths with a 301
|
||||||
|
# redirect to '/caldav/' or '/carddav/' and serves no data here
|
||||||
|
# (deeper paths return 404), so no authentication is required.
|
||||||
- endpoint: /.well-known/caldav
|
- endpoint: /.well-known/caldav
|
||||||
backend: http://radicale:5232
|
backend: http://radicale:5232
|
||||||
remote_user_header: X-Remote-User
|
|
||||||
skip_x_access_token: true
|
skip_x_access_token: true
|
||||||
|
unprotected: true
|
||||||
additional_headers:
|
additional_headers:
|
||||||
- X-Script-Name: /caldav
|
- X-Script-Name: /caldav
|
||||||
- endpoint: /carddav/
|
- endpoint: /carddav/
|
||||||
@@ -24,8 +33,8 @@ additional_policies:
|
|||||||
- X-Script-Name: /carddav
|
- X-Script-Name: /carddav
|
||||||
- endpoint: /.well-known/carddav
|
- endpoint: /.well-known/carddav
|
||||||
backend: http://radicale:5232
|
backend: http://radicale:5232
|
||||||
remote_user_header: X-Remote-User
|
|
||||||
skip_x_access_token: true
|
skip_x_access_token: true
|
||||||
|
unprotected: true
|
||||||
additional_headers:
|
additional_headers:
|
||||||
- X-Script-Name: /carddav
|
- X-Script-Name: /carddav
|
||||||
# To enable the radicale web UI add this rule.
|
# To enable the radicale web UI add this rule.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
services:
|
services:
|
||||||
opencloud:
|
opencloud:
|
||||||
# renovate: depName=opencloudeu/opencloud-rolling
|
# renovate: depName=opencloudeu/opencloud-rolling
|
||||||
image: ${OC_DOCKER_IMAGE:-opencloudeu/opencloud-rolling}:${OC_DOCKER_TAG:-7.4.0}
|
image: ${OC_DOCKER_IMAGE:-opencloudeu/opencloud-rolling}:${OC_DOCKER_TAG:-7.5.0}
|
||||||
# changelog: https://github.com/opencloud-eu/opencloud/tree/main/changelog
|
# changelog: https://github.com/opencloud-eu/opencloud/tree/main/changelog
|
||||||
# release notes: https://docs.opencloud.eu/opencloud_release_notes.html
|
# release notes: https://docs.opencloud.eu/opencloud_release_notes.html
|
||||||
user: ${OC_CONTAINER_UID_GID:-1000:1000}
|
user: ${OC_CONTAINER_UID_GID:-1000:1000}
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
keycloak:
|
keycloak:
|
||||||
image: quay.io/keycloak/keycloak:26.7.2
|
image: quay.io/keycloak/keycloak:26.7.3
|
||||||
networks:
|
networks:
|
||||||
opencloud-net:
|
opencloud-net:
|
||||||
command: [ "start", "--spi-connections-http-client-default-disable-trust-manager=${INSECURE:-false}", "--import-realm" ]
|
command: [ "start", "--spi-connections-http-client-default-disable-trust-manager=${INSECURE:-false}", "--import-realm" ]
|
||||||
|
|||||||
77
radicale/README.md
Normal file
77
radicale/README.md
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
# Radicale — CalDAV / CardDAV
|
||||||
|
|
||||||
|
This module adds [Radicale](https://radicale.org/) as a CalDAV (calendars,
|
||||||
|
to-do lists) and CardDAV (contacts) server behind the OpenCloud proxy. Every
|
||||||
|
user gets a personal calendar and address book on first access.
|
||||||
|
|
||||||
|
## Enabling
|
||||||
|
|
||||||
|
Add `radicale/radicale.yml` to your `COMPOSE_FILE`:
|
||||||
|
|
||||||
|
```
|
||||||
|
COMPOSE_FILE=docker-compose.yml:radicale/radicale.yml:traefik/opencloud.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
The routes are defined in [`config/opencloud/proxy.yaml`](../config/opencloud/proxy.yaml),
|
||||||
|
which `radicale.yml` mounts into the opencloud container.
|
||||||
|
|
||||||
|
## Connecting clients
|
||||||
|
|
||||||
|
### URLs
|
||||||
|
|
||||||
|
| Service | URL |
|
||||||
|
|---|---|
|
||||||
|
| CalDAV (calendar) | `https://<your-domain>/caldav/` |
|
||||||
|
| CardDAV (contacts) | `https://<your-domain>/carddav/` |
|
||||||
|
|
||||||
|
**The trailing slash is required.** `https://<your-domain>/caldav` (without
|
||||||
|
the slash) is not routed to Radicale and returns the OpenCloud web UI instead.
|
||||||
|
|
||||||
|
Clients that implement DAV service discovery (RFC 6764) can also be pointed
|
||||||
|
at the bare domain `https://<your-domain>/` — the `/.well-known/caldav` and
|
||||||
|
`/.well-known/carddav` endpoints redirect them to the URLs above. Clients
|
||||||
|
that don't (or that get confused by the web UI at the base URL) need the full
|
||||||
|
URL including the suffix.
|
||||||
|
|
||||||
|
### Authentication: use an App Token
|
||||||
|
|
||||||
|
DAV clients authenticate with **username + App Token** — not your account
|
||||||
|
password. With the default configuration (`PROXY_ENABLE_BASIC_AUTH=false`)
|
||||||
|
the account password is rejected with `401 Unauthorized`; App Tokens work out
|
||||||
|
of the box.
|
||||||
|
|
||||||
|
Create a token either
|
||||||
|
|
||||||
|
- in the web UI under **Settings → App Tokens**, or
|
||||||
|
- on the CLI:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose exec opencloud opencloud auth-app create --user-name=<user> --expiration=72h
|
||||||
|
```
|
||||||
|
|
||||||
|
### GNOME Online Accounts
|
||||||
|
|
||||||
|
GNOME expects a directly answering DAV endpoint per account, so calendars and
|
||||||
|
contacts are added as two separate accounts:
|
||||||
|
|
||||||
|
1. **Settings → Online Accounts → Add Account → Calendar (CalDAV)**
|
||||||
|
— URL `https://<your-domain>/caldav/`, your username, an App Token as
|
||||||
|
password.
|
||||||
|
2. **Settings → Online Accounts → Add Account → Contacts (CardDAV)**
|
||||||
|
— URL `https://<your-domain>/carddav/`, same credentials.
|
||||||
|
|
||||||
|
### Thunderbird
|
||||||
|
|
||||||
|
- Calendar: *New Calendar → On the Network*, URL `https://<your-domain>/caldav/`
|
||||||
|
- Address book: *New Address Book → Add CardDAV Address Book*, URL
|
||||||
|
`https://<your-domain>/carddav/`
|
||||||
|
|
||||||
|
Use an App Token as the password in both dialogs.
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
| Symptom | Cause |
|
||||||
|
|---|---|
|
||||||
|
| `401 Unauthorized` | Account password used instead of an App Token (or the token expired). |
|
||||||
|
| `405 Method Not Allowed` / HTML response | Trailing slash missing — the request landed on the web UI, not Radicale. |
|
||||||
|
| Client says "not a (Cal)DAV server" at the base URL | The client doesn't do RFC 6764 discovery. Use the full `/caldav/` / `/carddav/` URL. |
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"dependencyDashboard": true,
|
||||||
"platformAutomerge": true,
|
"platformAutomerge": true,
|
||||||
"enabledManagers": ["docker-compose", "custom.regex"],
|
"enabledManagers": ["docker-compose", "custom.regex"],
|
||||||
"baseBranchPatterns": ["main", "stable-4.0", "stable-7.2"],
|
"baseBranchPatterns": ["main", "stable-4.0", "stable-7.2"],
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
keycloak:
|
keycloak:
|
||||||
image: quay.io/keycloak/keycloak:26.7.2
|
image: quay.io/keycloak/keycloak:26.7.3
|
||||||
networks:
|
networks:
|
||||||
opencloud-net:
|
opencloud-net:
|
||||||
command: [ "start", "--spi-connections-http-client-default-disable-trust-manager=${INSECURE:-false}", "--import-realm" ]
|
command: [ "start", "--spi-connections-http-client-default-disable-trust-manager=${INSECURE:-false}", "--import-realm" ]
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ services:
|
|||||||
- "traefik.http.services.opencloud.loadbalancer.server.port=9200"
|
- "traefik.http.services.opencloud.loadbalancer.server.port=9200"
|
||||||
- "traefik.http.routers.opencloud.${TRAEFIK_SERVICES_TLS_CONFIG}"
|
- "traefik.http.routers.opencloud.${TRAEFIK_SERVICES_TLS_CONFIG}"
|
||||||
traefik:
|
traefik:
|
||||||
image: traefik:v3.7.10
|
image: traefik:v3.7.12
|
||||||
# release notes: https://github.com/traefik/traefik/releases
|
# release notes: https://github.com/traefik/traefik/releases
|
||||||
user: ${TRAEFIK_CONTAINER_UID_GID:-0:0}
|
user: ${TRAEFIK_CONTAINER_UID_GID:-0:0}
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ services:
|
|||||||
# To rotate the key, remove the volume and start again:
|
# To rotate the key, remove the volume and start again:
|
||||||
# docker compose down collabora && docker volume rm <project>_collabora-proof-key
|
# docker compose down collabora && docker volume rm <project>_collabora-proof-key
|
||||||
collabora-proof-key:
|
collabora-proof-key:
|
||||||
image: alpine/openssl:3.5.7
|
image: alpine/openssl:3.5.8
|
||||||
entrypoint: ["/bin/sh"]
|
entrypoint: ["/bin/sh"]
|
||||||
command:
|
command:
|
||||||
- -ec
|
- -ec
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ services:
|
|||||||
WOPI_ENABLED: "true"
|
WOPI_ENABLED: "true"
|
||||||
# self-signed certificates
|
# self-signed certificates
|
||||||
USE_UNAUTHORIZED_STORAGE: "${INSECURE:-false}"
|
USE_UNAUTHORIZED_STORAGE: "${INSECURE:-false}"
|
||||||
|
JWT_SECRET: "${EURO_OFFICE_JWT_SECRET}"
|
||||||
volumes:
|
volumes:
|
||||||
# Mount local TrueType fonts so the container can use system fonts
|
# Mount local TrueType fonts so the container can use system fonts
|
||||||
# (e.g. Microsoft fonts like Arial, Calibri, Cambria by installing the `ttf-mscorefonts-installer` package).
|
# (e.g. Microsoft fonts like Arial, Calibri, Cambria by installing the `ttf-mscorefonts-installer` package).
|
||||||
|
|||||||
Reference in New Issue
Block a user