暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

usr_share_z-push_backend_carddav_config.php.j2 3.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. /***********************************************
  3. * File : config.php
  4. * Project : Z-Push
  5. * Descr : CardDAV backend configuration file
  6. *
  7. * Created : 16.03.2013
  8. *
  9. * Copyright 2013 - 2016 Francisco Miguel Biete
  10. *
  11. * This program is free software: you can redistribute it and/or modify
  12. * it under the terms of the GNU Affero General Public License, version 3,
  13. * as published by the Free Software Foundation.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU Affero General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Affero General Public License
  21. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. *
  23. * Consult LICENSE file for details
  24. ************************************************/
  25. // ************************
  26. // BackendCardDAV settings
  27. // ************************
  28. // Server protocol: http or https
  29. define('CARDDAV_PROTOCOL', 'https');
  30. // Server name
  31. define('CARDDAV_SERVER', 'cloud.{{ domain }}');
  32. // Server port
  33. define('CARDDAV_PORT', '443');
  34. // Server path to the addressbook, or the principal with the addressbooks
  35. // If your user has more than 1 addressbook point it to the principal.
  36. // Example: user test@domain.com will have 2 addressbooks
  37. // http://localhost/caldav.php/test@domain.com/addresses/personal
  38. // http://localhost/caldav.php/test@domain.com/addresses/work
  39. // You set the CARDDAV_PATH to '/caldav.php/%u/addresses/' and personal and work will be autodiscovered
  40. // %u: replaced with the username
  41. // %d: replaced with the domain
  42. // Add the trailing /
  43. define('CARDDAV_PATH', '/remote.php/dav/addressbooks/users/%u/contacts/');
  44. // Server path to the default addressbook
  45. // Mobile device will create new contacts here. It must be under CARDDAV_PATH
  46. // %u: replaced with the username
  47. // %d: replaced with the domain
  48. // Add the trailing /
  49. define('CARDDAV_DEFAULT_PATH', '/remote.php/dav/addressbooks/users/%u/contacts/');
  50. // Server path to the GAL addressbook. This addressbook is readonly and searchable by the user, but it will NOT be synced.
  51. // If you don't want GAL, comment it
  52. // %u: replaced with the username
  53. // %d: replaced with the domain
  54. // Add the trailing /
  55. //define('CARDDAV_GAL_PATH', '/caldav.php/%d/GAL/');
  56. // Minimal length for the search pattern to do the real search.
  57. define('CARDDAV_GAL_MIN_LENGTH', 5);
  58. // Addressbook display name, the name showed in the mobile device
  59. // %u: replaced with the username
  60. // %d: replaced with the domain
  61. define('CARDDAV_CONTACTS_FOLDER_NAME', '%u Addressbook');
  62. // If the CardDAV server supports the sync-collection operation
  63. // DAViCal and SabreDav support it, but Owncloud, SOGo don't
  64. // SabreDav version must be at least 1.9.0, otherwise set this to false
  65. // Setting this to false will work with most servers, but it will be slower: 1 petition for the href of vcards, and 1 petition for each vcard
  66. define('CARDDAV_SUPPORTS_SYNC', true);
  67. // If the CardDAV server supports the FN attribute for searches
  68. // DAViCal supports it, but SabreDav, Owncloud and SOGo don't
  69. // Setting this to true will search by FN. If false will search by sn, givenName and email
  70. // It's safe to leave it as false
  71. define('CARDDAV_SUPPORTS_FN_SEARCH', false);
  72. // If your carddav server needs to use file extension to recover a vcard.
  73. // Davical needs it
  74. // SOGo official demo online needs it, but some SOGo installation don't need it, so test it
  75. define('CARDDAV_URL_VCARD_EXTENSION', '.vcf');