🔧(config) add CalDAV environment variables

Add configuration for CalDAV server URL, credentials and
IMIP callback settings for calendar invitations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Nathan Panchout
2026-01-25 20:32:40 +01:00
parent a39047d474
commit 08fbcc8cc5
3 changed files with 9 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ services:
ports:
- "8912:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB" ]
interval: 1s
timeout: 2s
retries: 300
@@ -67,7 +67,7 @@ services:
networks:
- default
- lasuite
command: ["celery", "-A", "calendars.celery_app", "worker", "-l", "DEBUG"]
command: [ "celery", "-A", "calendars.celery_app", "worker", "-l", "DEBUG" ]
environment:
- DJANGO_CONFIGURATION=Development
env_file:
@@ -108,8 +108,6 @@ services:
- ./src/frontend/:/home/frontend/
- /home/frontend/node_modules
- /home/frontend/apps/calendars/node_modules
- /home/frontend/packages/open-calendar/dist
- /home/frontend/packages/open-calendar/node_modules
ports:
- "8920:3000"

View File

@@ -50,6 +50,8 @@ OIDC_RS_ALLOWED_AUDIENCES=""
CALDAV_URL=http://caldav:80
CALDAV_OUTBOUND_API_KEY=changeme-outbound-in-production
CALDAV_INBOUND_API_KEY=changeme-inbound-in-production
# Internal URL for CalDAV scheduling callbacks (accessible from CalDAV container)
CALDAV_CALLBACK_BASE_URL=http://backend-dev:8000
# Frontend
FRONTEND_THEME=default

View File

@@ -6,3 +6,6 @@ PGPASSWORD=pass
CALENDARS_BASE_URI=/api/v1.0/caldav/
CALDAV_INBOUND_API_KEY=changeme-inbound-in-production
CALDAV_OUTBOUND_API_KEY=changeme-outbound-in-production
# Default callback URL for sending scheduling notifications (emails)
# Used when clients (like Apple Calendar) don't provide X-CalDAV-Callback-URL header
CALDAV_CALLBACK_URL=http://backend-dev:8000/api/v1.0/caldav-scheduling-callback