updated config for unidirectional sync
This commit is contained in:
parent
9a21263738
commit
e8047fbba2
2 changed files with 153 additions and 140 deletions
|
|
@ -1,54 +1,88 @@
|
|||
# Default CalDAV Sync Configuration
|
||||
# This file provides default values for the Zoho to Nextcloud calendar sync
|
||||
|
||||
# Zoho Configuration (Source)
|
||||
[zoho]
|
||||
server_url = "https://caldav.zoho.com/caldav"
|
||||
username = ""
|
||||
password = ""
|
||||
selected_calendars = []
|
||||
|
||||
# Nextcloud Configuration (Target)
|
||||
[nextcloud]
|
||||
server_url = ""
|
||||
username = ""
|
||||
password = ""
|
||||
target_calendar = "Imported-Zoho-Events"
|
||||
create_if_missing = true
|
||||
# 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 color in hex format
|
||||
# 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"
|
||||
# Default timezone for processing
|
||||
timezone = "UTC"
|
||||
# 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
|
||||
# Number of weeks ahead to sync
|
||||
weeks_ahead = 1
|
||||
# Whether to run in dry-run mode (preview changes only)
|
||||
dry_run = false
|
||||
|
||||
# Performance settings
|
||||
# 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]
|
||||
# # Event types to include (leave empty for all)
|
||||
# # 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
|
||||
# # Keywords to filter events by (events containing any of these will be included)
|
||||
# keywords = ["work", "meeting", "project"]
|
||||
# # Keywords to exclude
|
||||
# # Keywords to exclude (events containing any of these will be excluded)
|
||||
# exclude_keywords = ["personal", "holiday", "cancelled"]
|
||||
# # Minimum event duration in minutes
|
||||
# min_duration_minutes = 5
|
||||
# # Maximum event duration in hours
|
||||
# max_duration_hours = 24
|
||||
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue