I just changed the these values in config file
$config['calendar_driver'] = "caldav";
$config['calendar_caldav_server'] = "http://mailcowdockerized-sogo-mailcow-1:20000/SOGo/dav/";
$config['calendar_caldav_url'] = 'http://mailcowdockerized-sogo-mailcow-1:20000/SOGo/dav/%u/Calendar/';
That’s it. In CardDaV I followed the roundcube doucmentation and it is working fine.
Inside CardDAV conf I used these values
$prefs['_GLOBAL']['pwstore_scheme'] = 'des_key';
$prefs['SOGo'] = [
'accountname' => 'SOGo',
'username' => '%u',
'password' => '%p',
'discovery_url' => 'http://mailcowdockerized-sogo-mailcow-1:20000/SOGo/dav/',
'name' => '%N',
'use_categories' => true,
'fixed' => ['username', 'password'],
];
But for CalDaV configuration, there is no config key to add these values