-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigs-template-nextcloud.txt
37 lines (26 loc) · 2.67 KB
/
configs-template-nextcloud.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
declare -g USERNAME=''
declare -g PASSWORD=''
DOMAIN='domain.tld'
###################################################################################################################################
declare -g CAL_URL="https://$DOMAIN/remote.php/dav/calendar/$USERNAME" # base URL shared between all calendars
declare -ga CAL_NAMES CALENDAR_SERVER_CONFIG_NAMES CALENDAR_NAMES CALENDAR_VISUAL_NAMES
CAL_NAMES[0]='personal'
CALENDAR_SERVER_CONFIG_NAMES[0]="${CAL_NAMES[0]}-nextcloud" # should be globally unique, can NOT include the '@' symbol, can NOT be greater than 31 characters!
CALENDAR_NAMES[0]="${CAL_NAMES[0]}-calendar-$DOMAIN" # should be globally unique, can NOT include the '@' symbol, can NOT be greater than 31 characters!
CALENDAR_VISUAL_NAMES[0]="${CAL_NAMES[0]} - nextcloud" # can NOT include the '@' symbol, can NOT be greater than 31 characters!
CAL_NAMES[1]='contact_birthdays'
CALENDAR_SERVER_CONFIG_NAMES[1]="${CAL_NAMES[1]}-nextcloud" # should be globally unique, can NOT include the '@' symbol, can NOT be greater than 31 characters!
CALENDAR_NAMES[1]="${CAL_NAMES[1]}-calendar-$DOMAIN" # should be globally unique, can NOT include the '@' symbol, can NOT be greater than 31 characters!
CALENDAR_VISUAL_NAMES[1]="${CAL_NAMES[1]} - nextcloud" # can NOT include the '@' symbol, can NOT be greater than 31 characters!
###################################################################################################################################
declare -g CARD_URL="https://$DOMAIN/remote.php/dav/addressbooks/users/$USERNAME/contacts" # Currently Nextcloud has a single contact group for each user so this is the full URL
declare -ga CARD_NAMES CONTACTS_SERVER_CONFIG_NAMES CONTACTS_NAMES CONTACTS_VISUAL_NAMES
CARD_NAMES[0]='' # Currently Nextcloud has a single contact group for each user so this can be empty or unset
CONTACTS_SERVER_CONFIG_NAMES[0]="$USERNAME-contacts-nextcloud" # should be globally unique, can NOT include the '@' symbol, can NOT be greater than 31 characters!
CONTACTS_NAMES[0]="$USERNAME-contacts-$DOMAIN" # should be globally unique, can NOT include the '@' symbol, can NOT be greater than 31 characters!
CONTACTS_VISUAL_NAMES[0]="$USERNAME - nextcloud" # can NOT include the '@' symbol, can NOT be greater than 31 characters!
###################################################################################################################################
declare -g CRON_FREQUENCY='0,15,30,45 * * * *' # every 15 minutes
#declare -g CRON_FREQUENCY='0,30 * * * *' # every 30 minutes
#declare -g CRON_FREQUENCY='0 * * * *' # every hour
#declare -g CRON_FREQUENCY='@hourly' # non standard