caldavpuller/config/default.toml
2025-10-15 23:14:38 -03:00

88 lines
2.9 KiB
TOML

# Default CalDAV Sync Configuration
# This file provides default values for CalDAV synchronization
# Source Server Configuration (Primary CalDAV server)
[server]
# CalDAV server URL (example: Zoho, Google Calendar, etc.)
url = "https://caldav.example.com/"
# Username for authentication
username = ""
# Password for authentication (use app-specific password)
password = ""
# Whether to use HTTPS (recommended)
use_https = true
# Request timeout in seconds
timeout = 30
# Source Calendar Configuration
[calendar]
# Calendar name/path on the server
name = "calendar"
# Calendar display name (optional - will be discovered from server if not specified)
display_name = ""
# Calendar color in hex format (optional - will be discovered from server if not specified)
color = "#3174ad"
# Calendar timezone (optional - will be discovered from server if not specified)
timezone = ""
# Whether this calendar is enabled for synchronization
enabled = true
# Synchronization Configuration
[sync]
# Synchronization interval in seconds (300 = 5 minutes)
interval = 300
# Whether to perform synchronization on startup
sync_on_startup = true
# Maximum number of retry attempts for failed operations
max_retries = 3
# Delay between retry attempts in seconds
retry_delay = 5
# Whether to delete local events that are missing on server
delete_missing = false
# Date range configuration
[sync.date_range]
# Number of days ahead to sync
days_ahead = 7
# Number of days in the past to sync
days_back = 0
# Whether to sync all events regardless of date
sync_all_events = false
# Optional filtering configuration
# [filters]
# # Start date filter (ISO 8601 format)
# start_date = "2024-01-01T00:00:00Z"
# # End date filter (ISO 8601 format)
# end_date = "2024-12-31T23:59:59Z"
# # Event types to include
# event_types = ["meeting", "appointment"]
# # Keywords to filter events by (events containing any of these will be included)
# keywords = ["work", "meeting", "project"]
# # Keywords to exclude (events containing any of these will be excluded)
# exclude_keywords = ["personal", "holiday", "cancelled"]
# Optional Import Configuration (for unidirectional sync to target server)
# Uncomment and configure this section to enable import functionality
# [import]
# # Target server configuration
# [import.target_server]
# url = "https://nextcloud.example.com/remote.php/dav/"
# username = ""
# password = ""
# use_https = true
# timeout = 30
#
# # Target calendar configuration
# [import.target_calendar]
# name = "Imported-Events"
# display_name = "Imported from Source"
# color = "#FF6B6B"
# timezone = "UTC"
# enabled = true
#
# # Import behavior settings
# overwrite_existing = true # Source always wins
# delete_missing = false # Don't delete events missing from source
# dry_run = false # Set to true for preview mode
# batch_size = 50 # Number of events to process in each batch
# create_target_calendar = true # Create target calendar if it doesn't exist