Advertisement
lifeboy

Kanboard config

Jul 17th, 2017
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.01 KB | None | 0 0
  1. <?php
  2.  
  3. /*******************************************************************/
  4. /* Rename this file to config.php if you want to change the values */
  5. /*******************************************************************/
  6.  
  7. // Data folder (must be writeable by the web server user and absolute)
  8. //define('DATA_DIR', '/var/www/html/kanboard');
  9.  
  10. // Enable/Disable debug
  11. define('DEBUG', true);
  12.  
  13. // Available log drivers: syslog, stderr, stdout or file
  14. define('LOG_DRIVER', 'file');
  15.  
  16. // Log filename if the log driver is "file"
  17. define('LOG_FILE', 'data/debug.log');
  18.  
  19. // Plugins directory
  20. define('PLUGINS_DIR', 'plugins');
  21.  
  22. // Plugins directory URL
  23. define('PLUGIN_API_URL', 'https://kanboard.net/plugins.json');
  24.  
  25. // Enable/Disable plugin installer
  26. define('PLUGIN_INSTALLER', true);
  27.  
  28. // Available cache drivers are "file" and "memory"
  29. define('CACHE_DRIVER', 'memory');
  30.  
  31. // Cache folder to use if cache driver is "file" (must be writeable by the web server user)
  32. define('CACHE_DIR', DATA_DIR.DIRECTORY_SEPARATOR.'cache');
  33.  
  34. // Folder for uploaded files (must be writeable by the web server user)
  35. define('FILES_DIR', 'data/files');
  36.  
  37. // Enable/disable email configuration from the user interface
  38. define('MAIL_CONFIGURATION', true);
  39.  
  40. // E-mail address used for the "From" header (notifications)
  41. define('MAIL_FROM', 'kanboard@****.***');
  42.  
  43. // Mail transport available: "smtp", "sendmail", "mail" (PHP mail function), "postmark", "mailgun", "sendgrid"
  44. define('MAIL_TRANSPORT', 'smtp');
  45.  
  46. // SMTP configuration to use when the "smtp" transport is chosen
  47. define('MAIL_SMTP_HOSTNAME', 'mail.google.com');
  48. define('MAIL_SMTP_PORT', 465);
  49. define('MAIL_SMTP_USERNAME', '***@****.net');
  50. define('MAIL_SMTP_PASSWORD', '******');
  51. define('MAIL_SMTP_ENCRYPTION', 'tls'); // Valid values are "null", "ssl" or "tls"
  52.  
  53. // Sendmail command to use when the transport is "sendmail"
  54. define('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs');
  55.  
  56. // Run automatically database migrations
  57. // If set to false, you will have to run manually the SQL migrations from the CLI during the next Kanboard upgrade
  58. // Do not run the migrations from multiple processes at the same time (example: web page + background worker)
  59. define('DB_RUN_MIGRATIONS', true);
  60. // Database driver: sqlite, mysql or postgres (sqlite by default)
  61. define('DB_DRIVER', 'mysql');
  62.  
  63. // Mysql/Postgres username
  64. define('DB_USERNAME', 'root');
  65.  
  66. // Mysql/Postgres password
  67. define('DB_PASSWORD', '*******');
  68.  
  69. // Mysql/Postgres hostname
  70. define('DB_HOSTNAME', 'localhost');
  71.  
  72. // Mysql/Postgres database name
  73. define('DB_NAME', 'kanboard');
  74.  
  75. // Mysql/Postgres custom port (null = default port)
  76. define('DB_PORT', null);
  77.  
  78. // Mysql SSL key
  79. define('DB_SSL_KEY', null);
  80.  
  81. // Mysql SSL certificate
  82. define('DB_SSL_CERT', null);
  83.  
  84. // Mysql SSL CA
  85. define('DB_SSL_CA', null);
  86.  
  87. // Enable LDAP authentication (false by default)
  88. define('LDAP_AUTH', false);
  89.  
  90. // LDAP server hostname
  91. define('LDAP_SERVER', '');
  92.  
  93. // LDAP server port (389 by default)
  94. define('LDAP_PORT', 389);
  95.  
  96. // By default, require certificate to be verified for ldaps:// style URL. Set to false to skip the verification
  97. define('LDAP_SSL_VERIFY', true);
  98.  
  99. // Enable LDAP START_TLS
  100. define('LDAP_START_TLS', false);
  101.  
  102. // By default Kanboard lowercase the ldap username to avoid duplicate users (the database is case sensitive)
  103. // Set to true if you want to preserve the case
  104. define('LDAP_USERNAME_CASE_SENSITIVE', false);
  105.  
  106. // LDAP bind type: "anonymous", "user" or "proxy"
  107. define('LDAP_BIND_TYPE', 'anonymous');
  108.  
  109. // LDAP username to use with proxy mode
  110. // LDAP username pattern to use with user mode
  111. define('LDAP_USERNAME', null);
  112.  
  113. // LDAP password to use for proxy mode
  114. define('LDAP_PASSWORD', null);
  115.  
  116. // LDAP DN for users
  117. // Example for ActiveDirectory: CN=Users,DC=kanboard,DC=local
  118. // Example for OpenLDAP: ou=People,dc=example,dc=com
  119. define('LDAP_USER_BASE_DN', '');
  120.  
  121. // LDAP pattern to use when searching for a user account
  122. // Example for ActiveDirectory: '(&(objectClass=user)(sAMAccountName=%s))'
  123. // Example for OpenLDAP: 'uid=%s'
  124. define('LDAP_USER_FILTER', '');
  125.  
  126. // LDAP attribute for username
  127. // Example for ActiveDirectory: 'samaccountname'
  128. // Example for OpenLDAP: 'uid'
  129. define('LDAP_USER_ATTRIBUTE_USERNAME', 'uid');
  130.  
  131. // LDAP attribute for user full name
  132. // Example for ActiveDirectory: 'displayname'
  133. // Example for OpenLDAP: 'cn'
  134. define('LDAP_USER_ATTRIBUTE_FULLNAME', 'cn');
  135.  
  136. // LDAP attribute for user email
  137. define('LDAP_USER_ATTRIBUTE_EMAIL', 'mail');
  138.  
  139. // LDAP attribute to find groups in user profile
  140. define('LDAP_USER_ATTRIBUTE_GROUPS', 'memberof');
  141.  
  142. // LDAP attribute for user avatar image: thumbnailPhoto or jpegPhoto
  143. define('LDAP_USER_ATTRIBUTE_PHOTO', '');
  144.  
  145. // LDAP attribute for user language, example: 'preferredlanguage'
  146. // Put an empty string to disable language sync
  147. define('LDAP_USER_ATTRIBUTE_LANGUAGE', '');
  148.  
  149. // Allow automatic LDAP user creation
  150. define('LDAP_USER_CREATION', true);
  151.  
  152. // LDAP DN for administrators
  153. // Example: CN=Kanboard-Admins,CN=Users,DC=kanboard,DC=local
  154. define('LDAP_GROUP_ADMIN_DN', '');
  155.  
  156. // LDAP DN for managers
  157. // Example: CN=Kanboard Managers,CN=Users,DC=kanboard,DC=local
  158. define('LDAP_GROUP_MANAGER_DN', '');
  159.  
  160. // Enable LDAP group provider for project permissions
  161. // The end-user will be able to browse LDAP groups from the user interface and allow access to specified projects
  162. define('LDAP_GROUP_PROVIDER', false);
  163.  
  164. // LDAP Base DN for groups
  165. define('LDAP_GROUP_BASE_DN', '');
  166.  
  167. // LDAP group filter
  168. // Example for ActiveDirectory: (&(objectClass=group)(sAMAccountName=%s*))
  169. define('LDAP_GROUP_FILTER', '');
  170.  
  171. // LDAP user group filter
  172. // If this filter is configured, Kanboard will search user groups in LDAP_GROUP_BASE_DN with this filter
  173.                                                                                                                   // LDAP user group filter
  174. // If this filter is configured, Kanboard will search user groups in LDAP_GROUP_BASE_DN with this filter
  175. // Example for OpenLDAP: (&(objectClass=posixGroup)(memberUid=%s))
  176. define('LDAP_GROUP_USER_FILTER', '');
  177.  
  178. // LDAP attribute for the group name
  179. define('LDAP_GROUP_ATTRIBUTE_NAME', 'cn');
  180.  
  181. // Enable/disable the reverse proxy authentication
  182. define('REVERSE_PROXY_AUTH', false);
  183.  
  184. // Header name to use for the username
  185. define('REVERSE_PROXY_USER_HEADER', 'REMOTE_USER');
  186.  
  187. // Username of the admin, by default blank
  188. define('REVERSE_PROXY_DEFAULT_ADMIN', '');
  189.  
  190. // Default domain to use for setting the email address
  191. define('REVERSE_PROXY_DEFAULT_DOMAIN', '');
  192.  
  193. // Enable/disable remember me authentication
  194. define('REMEMBER_ME_AUTH', true);
  195.  
  196. // Enable or disable "Strict-Transport-Security" HTTP header
  197. define('ENABLE_HSTS', true);
  198.  
  199. // Enable or disable "X-Frame-Options: DENY" HTTP header
  200. define('ENABLE_XFRAME', true);
  201.  
  202. // Escape html inside markdown text
  203. define('MARKDOWN_ESCAPE_HTML', true);
  204.  
  205. // API alternative authentication header, the default is HTTP Basic Authentication defined in RFC2617
  206. define('API_AUTHENTICATION_HEADER', '');
  207.  
  208. // Enable/disable url rewrite
  209. define('ENABLE_URL_REWRITE', false);
  210.  
  211. // Hide login form, useful if all your users use Google/Github/ReverseProxy authentication
  212. define('HIDE_LOGIN_FORM', false);
  213.  
  214. // Disabling logout (useful for external SSO authentication)
  215. define('DISABLE_LOGOUT', false);
  216.  
  217. // Enable captcha after 3 authentication failure
  218. define('BRUTEFORCE_CAPTCHA', 3);
  219.  
  220. // Lock the account after 6 authentication failure
  221. define('BRUTEFORCE_LOCKDOWN', 6);
  222.  
  223. // Lock account duration in minute
  224. define('BRUTEFORCE_LOCKDOWN_DURATION', 15);
  225.  
  226. // Session duration in second (0 = until the browser is closed)
  227. // See http://php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
  228. define('SESSION_DURATION', 0);
  229. // HTTP client proxy
  230. define('HTTP_PROXY_HOSTNAME', '');
  231. define('HTTP_PROXY_PORT', '3128');
  232. define('HTTP_PROXY_USERNAME', '');
  233. define('HTTP_PROXY_PASSWORD', '');
  234.  
  235. // Set to false to allow self-signed certificates
  236. define('HTTP_VERIFY_SSL_CERTIFICATE', true);
  237.  
  238. // TOTP (2FA) issuer name
  239. define('TOTP_ISSUER', 'Kanboard');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement