How can I sync Mac Calendar with my own server?
Launch System Preferences
Select Internet Accounts
Select Add Other Account…
Select CalDAV account


You can then configure the calendar to synchronise with. The calendar must support CalDAV to work with macOS.