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.

var_www_kanboard_config.j2 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <?php
  2. /*******************************************************************/
  3. /* Rename this file to config.php if you want to change the values */
  4. /* */
  5. /* Make sure all paths are absolute by using __DIR__ where needed */
  6. /*******************************************************************/
  7. // Data folder (must be writeable by the web server user and absolute)
  8. define('DATA_DIR', __DIR__.DIRECTORY_SEPARATOR.'data');
  9. // Enable/Disable debug
  10. define('DEBUG', false);
  11. // Available log drivers: syslog, stderr, stdout, system or file
  12. define('LOG_DRIVER', 'system');
  13. // Log filename if the log driver is "file"
  14. define('LOG_FILE', DATA_DIR.DIRECTORY_SEPARATOR.'debug.log');
  15. // Plugins directory
  16. define('PLUGINS_DIR', __DIR__.DIRECTORY_SEPARATOR.'plugins');
  17. // Plugins directory URL
  18. define('PLUGIN_API_URL', 'https://kanboard.org/plugins.json');
  19. // Enable/Disable plugin installer (Disabled by default for security reasons)
  20. // There is no code review or any approval process to submit a plugin.
  21. // This is up to the Kanboard instance owner to validate if a plugin is legit.
  22. define('PLUGIN_INSTALLER', true);
  23. // Available cache drivers are "file" and "memory"
  24. define('CACHE_DRIVER', 'memory');
  25. // Cache folder to use if cache driver is "file" (must be writeable by the web server user)
  26. define('CACHE_DIR', DATA_DIR.DIRECTORY_SEPARATOR.'cache');
  27. // Folder for uploaded files (must be writeable by the web server user)
  28. define('FILES_DIR', DATA_DIR.DIRECTORY_SEPARATOR.'files');
  29. // Enable/disable email configuration from the user interface
  30. define('MAIL_CONFIGURATION', true);
  31. // E-mail address used for the "From" header (notifications)
  32. define('MAIL_FROM', 'kanboard@{{ domain }}');
  33. // E-mail address used for the "Bcc" header to send a copy of all notifications
  34. define('MAIL_BCC', '');
  35. // Mail transport available: "smtp", "sendmail", "mail" (PHP mail function), "postmark", "mailgun", "sendgrid"
  36. define('MAIL_TRANSPORT', 'mail');
  37. // SMTP configuration to use when the "smtp" transport is chosen
  38. define('MAIL_SMTP_HOSTNAME', '');
  39. define('MAIL_SMTP_PORT', 25);
  40. define('MAIL_SMTP_USERNAME', '');
  41. define('MAIL_SMTP_PASSWORD', '');
  42. define('MAIL_SMTP_HELO_NAME', null); // valid: null (default), or FQDN
  43. define('MAIL_SMTP_ENCRYPTION', null); // Valid values are null (not a string "null"), "ssl" or "tls"
  44. // Sendmail command to use when the transport is "sendmail"
  45. define('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs');
  46. // Run automatically database migrations
  47. // If set to false, you will have to run manually the SQL migrations from the CLI during the next Kanboard upgrade
  48. // Do not run the migrations from multiple processes at the same time (example: web page + background worker)
  49. define('DB_RUN_MIGRATIONS', true);
  50. // Database driver: sqlite, mysql or postgres (sqlite by default)
  51. define('DB_DRIVER', 'postgres');
  52. // Mysql/Postgres username
  53. define('DB_USERNAME', '{{ kanboard_db_username }}');
  54. // Mysql/Postgres password
  55. define('DB_PASSWORD', '{{ kanboard_db_password }}');
  56. // Mysql/Postgres hostname
  57. define('DB_HOSTNAME', 'localhost');
  58. // Mysql/Postgres database name
  59. define('DB_NAME', '{{ kanboard_db_database }}');
  60. // Mysql/Postgres custom port (null = default port)
  61. define('DB_PORT', null);
  62. // Mysql SSL key
  63. define('DB_SSL_KEY', null);
  64. // Mysql SSL certificate
  65. define('DB_SSL_CERT', null);
  66. // Mysql SSL CA
  67. define('DB_SSL_CA', null);
  68. // Mysql SSL server verification, set to false if you don't want the Mysql driver to validate the certificate CN
  69. define('DB_VERIFY_SERVER_CERT', null);
  70. // Timeout value for PDO attribute
  71. define('DB_TIMEOUT', null);
  72. // Enable LDAP authentication (false by default)
  73. define('LDAP_AUTH', false);
  74. // LDAP server protocol, hostname and port URL (ldap[s]://hostname:port)
  75. define('LDAP_SERVER', '');
  76. // By default, require certificate to be verified for ldaps:// style URL. Set to false to skip the verification
  77. define('LDAP_SSL_VERIFY', true);
  78. // Enable LDAP START_TLS
  79. define('LDAP_START_TLS', false);
  80. // By default Kanboard lowercase the ldap username to avoid duplicate users (the database is case sensitive)
  81. // Set to true if you want to preserve the case
  82. define('LDAP_USERNAME_CASE_SENSITIVE', false);
  83. // LDAP bind type: "anonymous", "user" or "proxy"
  84. define('LDAP_BIND_TYPE', 'anonymous');
  85. // LDAP username to use with proxy mode
  86. // LDAP username pattern to use with user mode
  87. define('LDAP_USERNAME', null);
  88. // LDAP password to use for proxy mode
  89. define('LDAP_PASSWORD', null);
  90. // LDAP DN for users
  91. // Example for ActiveDirectory: CN=Users,DC=kanboard,DC=local
  92. // Example for OpenLDAP: ou=People,dc=example,dc=com
  93. define('LDAP_USER_BASE_DN', '');
  94. // LDAP pattern to use when searching for a user account
  95. // Example for ActiveDirectory: '(&(objectClass=user)(sAMAccountName=%s))'
  96. // Example for OpenLDAP: 'uid=%s'
  97. define('LDAP_USER_FILTER', '');
  98. // LDAP attribute for username
  99. // Example for ActiveDirectory: 'sAMAccountName'
  100. // Example for OpenLDAP: 'uid'
  101. define('LDAP_USER_ATTRIBUTE_USERNAME', 'uid');
  102. // LDAP attribute for user full name
  103. // Example for ActiveDirectory: 'displayname'
  104. // Example for OpenLDAP: 'cn'
  105. define('LDAP_USER_ATTRIBUTE_FULLNAME', 'cn');
  106. // LDAP attribute for user email
  107. define('LDAP_USER_ATTRIBUTE_EMAIL', 'mail');
  108. // LDAP attribute to find groups in user profile
  109. define('LDAP_USER_ATTRIBUTE_GROUPS', 'memberof');
  110. // LDAP attribute for user avatar image: thumbnailPhoto or jpegPhoto
  111. define('LDAP_USER_ATTRIBUTE_PHOTO', '');
  112. // LDAP attribute for user language, example: 'preferredlanguage'
  113. // Put an empty string to disable language sync
  114. define('LDAP_USER_ATTRIBUTE_LANGUAGE', '');
  115. // Allow automatic LDAP user creation
  116. define('LDAP_USER_CREATION', true);
  117. // Set new user as Manager
  118. define('LDAP_USER_DEFAULT_ROLE_MANAGER', false);
  119. // LDAP DN for administrators
  120. // Example: CN=Kanboard-Admins,CN=Users,DC=kanboard,DC=local
  121. define('LDAP_GROUP_ADMIN_DN', '');
  122. // LDAP DN for managers
  123. // Example: CN=Kanboard Managers,CN=Users,DC=kanboard,DC=local
  124. define('LDAP_GROUP_MANAGER_DN', '');
  125. // Enable LDAP group provider for project permissions
  126. // The end-user will be able to browse LDAP groups from the user interface and allow access to specified projects
  127. define('LDAP_GROUP_PROVIDER', false);
  128. // LDAP Base DN for groups
  129. define('LDAP_GROUP_BASE_DN', '');
  130. // LDAP group filter
  131. // Example for ActiveDirectory: (&(objectClass=group)(sAMAccountName=%s*))
  132. define('LDAP_GROUP_FILTER', '');
  133. // LDAP user group filter
  134. // If this filter is configured, Kanboard will search user groups in LDAP_GROUP_BASE_DN with this filter
  135. // Example for OpenLDAP: (&(objectClass=posixGroup)(memberUid=%s))
  136. define('LDAP_GROUP_USER_FILTER', '');
  137. // LDAP attribute for the user in the group filter
  138. // 'username' or 'dn'
  139. define('LDAP_GROUP_USER_ATTRIBUTE', 'username');
  140. // LDAP attribute for the group name
  141. define('LDAP_GROUP_ATTRIBUTE_NAME', 'cn');
  142. // Enable/disable the reverse proxy authentication
  143. define('REVERSE_PROXY_AUTH', false);
  144. // Header name to use for the username
  145. define('REVERSE_PROXY_USER_HEADER', 'REMOTE_USER');
  146. // Username of the admin, by default blank
  147. define('REVERSE_PROXY_DEFAULT_ADMIN', '');
  148. // Header name to use for the username
  149. define('REVERSE_PROXY_EMAIL_HEADER', 'REMOTE_EMAIL');
  150. // Default domain to use for setting the email address
  151. define('REVERSE_PROXY_DEFAULT_DOMAIN', '');
  152. // Enable/disable remember me authentication
  153. define('REMEMBER_ME_AUTH', true);
  154. // Enable or disable "Strict-Transport-Security" HTTP header
  155. define('ENABLE_HSTS', true);
  156. // Enable or disable "X-Frame-Options: DENY" HTTP header
  157. define('ENABLE_XFRAME', true);
  158. // Escape html inside markdown text
  159. define('MARKDOWN_ESCAPE_HTML', true);
  160. // API alternative authentication header, the default is HTTP Basic Authentication defined in RFC2617
  161. define('API_AUTHENTICATION_HEADER', '');
  162. // Enable/disable url rewrite
  163. define('ENABLE_URL_REWRITE', true);
  164. // Hide login form, useful if all your users use Google/Github/ReverseProxy authentication
  165. define('HIDE_LOGIN_FORM', false);
  166. // Disabling logout (useful for external SSO authentication)
  167. define('DISABLE_LOGOUT', false);
  168. // Enable captcha after 3 authentication failure
  169. define('BRUTEFORCE_CAPTCHA', 3);
  170. // Lock the account after 6 authentication failure
  171. define('BRUTEFORCE_LOCKDOWN', 6);
  172. // Lock account duration in minute
  173. define('BRUTEFORCE_LOCKDOWN_DURATION', 15);
  174. // Session duration in second (0 = until the browser is closed)
  175. // See http://php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
  176. define('SESSION_DURATION', 0);
  177. // Session handler: db or php
  178. define('SESSION_HANDLER', 'db');
  179. // HTTP client proxy
  180. define('HTTP_PROXY_HOSTNAME', '');
  181. define('HTTP_PROXY_PORT', '3128');
  182. define('HTTP_PROXY_USERNAME', '');
  183. define('HTTP_PROXY_PASSWORD', '');
  184. define('HTTP_PROXY_EXCLUDE', 'localhost');
  185. // Set to false to allow self-signed certificates
  186. define('HTTP_VERIFY_SSL_CERTIFICATE', true);
  187. // TOTP (2FA) issuer name
  188. define('TOTP_ISSUER', 'Kanboard');
  189. // Comma separated list of fields to not synchronize when using external authentication providers
  190. define('EXTERNAL_AUTH_EXCLUDE_FIELDS', 'username');
  191. // Enable or disable displaying group-memberships in userlist (true by default)
  192. define('SHOW_GROUP_MEMBERSHIPS_IN_USERLIST', true);
  193. // Limit number of groups to display in userlist (The full list of group-memberships is always shown, ...
  194. // ... when hovering the mouse over the group-icon of a given user!)
  195. // If set to 0 ALL group-memberships will be listed (7 by default)
  196. define('SHOW_GROUP_MEMBERSHIPS_IN_USERLIST_WITH_LIMIT', 7);