No Description
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_autodiscover_config.php.j2 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php
  2. /***********************************************
  3. * File : config.php
  4. * Project : Z-Push
  5. * Descr : Autodiscover configuration file
  6. *
  7. * Created : 30.07.2014
  8. *
  9. * Copyright 2007 - 2016 Zarafa Deutschland GmbH
  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. * Default settings
  27. */
  28. // Replace zpush.example.com with your z-push's host name and uncomment the line below.
  29. define('ZPUSH_HOST', '{{ domain }}');
  30. // Defines the default time zone, change e.g. to "Europe/London" if necessary
  31. define('TIMEZONE', '{{ zpush_timezone }}');
  32. // Defines the base path on the server
  33. define('BASE_PATH', dirname($_SERVER['SCRIPT_FILENAME']). '/');
  34. /*
  35. * Whether to use the complete email address as a login name
  36. * (e.g. user@company.com) or the username only (user).
  37. * Possible values:
  38. * false - use the username only (default).
  39. * true - use the complete email address.
  40. */
  41. define('USE_FULLEMAIL_FOR_LOGIN', true);
  42. /*
  43. * AutoDiscover requires the username to match either the email address
  44. * or the local part of the email address.
  45. * This is not always possible as the username might have a different
  46. * schema than email address. Configure this parameter to match your
  47. * username settings.
  48. * @see https://wiki.z-hub.io/display/ZP/Configuring+Z-Push+Autodiscover#ConfiguringZ-PushAutodiscover-Configuration
  49. * @see https://jira.z-hub.io/browse/ZP-1209
  50. *
  51. * Possible values:
  52. * AUTODISCOVER_LOGIN_EMAIL - uses the email address as provided when setting up the account
  53. * AUTODISCOVER_LOGIN_NO_DOT - removes the '.' from email address:
  54. * email: first.last@domain.com -> resulting username: firstlast
  55. * AUTODISCOVER_LOGIN_F_NO_DOT_LAST - cuts the first part before '.' after the first letter and
  56. * removes the '.' from email address:
  57. * email: first.last@domain.com -> resulting username: flast
  58. * AUTODISCOVER_LOGIN_F_DOT_LAST - cuts the part before '.' after the first letter and
  59. * leaves the part after '.' as is:
  60. * email: first.last@domain.com -> resulting username: f.last
  61. */
  62. define('AUTODISCOVER_LOGIN_TYPE', AUTODISCOVER_LOGIN_EMAIL);
  63. /**********************************************************************************
  64. * Logging settings
  65. * Possible LOGLEVEL and LOGUSERLEVEL values are:
  66. * LOGLEVEL_OFF - no logging
  67. * LOGLEVEL_FATAL - log only critical errors
  68. * LOGLEVEL_ERROR - logs events which might require corrective actions
  69. * LOGLEVEL_WARN - might lead to an error or require corrective actions in the future
  70. * LOGLEVEL_INFO - usually completed actions
  71. * LOGLEVEL_DEBUG - debugging information, typically only meaningful to developers
  72. * LOGLEVEL_WBXML - also prints the WBXML sent to/from the device
  73. * LOGLEVEL_DEVICEID - also prints the device id for every log entry
  74. * LOGLEVEL_WBXMLSTACK - also prints the contents of WBXML stack
  75. *
  76. * The verbosity increases from top to bottom. More verbose levels include less verbose
  77. * ones, e.g. setting to LOGLEVEL_DEBUG will also output LOGLEVEL_FATAL, LOGLEVEL_ERROR,
  78. * LOGLEVEL_WARN and LOGLEVEL_INFO level entries.
  79. */
  80. define('LOGBACKEND', 'filelog');
  81. define('LOGFILEDIR', '/var/log/z-push/');
  82. define('LOGFILE', LOGFILEDIR . 'autodiscover.log');
  83. define('LOGERRORFILE', LOGFILEDIR . 'autodiscover-error.log');
  84. define('LOGLEVEL', LOGLEVEL_INFO);
  85. define('LOGUSERLEVEL', LOGLEVEL);
  86. $specialLogUsers = array();
  87. // Syslog settings
  88. // false will log to local syslog, otherwise put the remote syslog IP here
  89. define('LOG_SYSLOG_HOST', false);
  90. // Syslog port
  91. define('LOG_SYSLOG_PORT', 514);
  92. // Program showed in the syslog. Useful if you have more than one instance login to the same syslog
  93. define('LOG_SYSLOG_PROGRAM', 'z-push-autodiscover');
  94. // Syslog facility - use LOG_USER when running on Windows
  95. define('LOG_SYSLOG_FACILITY', LOG_LOCAL0);
  96. /**********************************************************************************
  97. * Backend settings
  98. */
  99. // the backend data provider
  100. define('BACKEND_PROVIDER', 'BackendCombined');