Advertisement
Guest User

Kanboard Config

a guest
Apr 16th, 2023
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.92 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', __DIR__.DIRECTORY_SEPARATOR.'data');
  9.  
  10. define('DEBUG', false);
  11. define('LOG_DRIVER', 'file'); // Other drivers are: syslog, stdout, stderr, system or file
  12.  
  13. // By default, the log file is in data/debug.log but you can change the path:
  14. define('LOG_FILE', 'xxxx/debug.log');
  15.  
  16. // Plugins directory
  17. define('PLUGINS_DIR', 'plugins');
  18.  
  19. // Plugins directory URL
  20. define('PLUGIN_API_URL', 'https://kanboard.org/plugins.json');
  21.  
  22. // Enable/Disable plugin installer
  23. define('PLUGIN_INSTALLER', true);
  24.  
  25. // Available cache drivers are "file" and "memory"
  26. define('CACHE_DRIVER', 'file');
  27.  
  28. // Cache folder to use if cache driver is "file" (must be writeable by the web server user)
  29. define('CACHE_DIR', DATA_DIR.DIRECTORY_SEPARATOR.'cache');
  30.  
  31. // Folder for uploaded files (must be writeable by the web server user)
  32. define('FILES_DIR', DATA_DIR.DIRECTORY_SEPARATOR.'files');
  33.  
  34. // Enable/disable email configuration from the user interface
  35. define('MAIL_CONFIGURATION', true);
  36.  
  37. // E-mail address used for the "From" header (notifications)
  38. define('MAIL_FROM', 'xxxx');
  39.  
  40. // Mail transport available: "smtp", "sendmail", "mail" (PHP mail function), "postmark", "mailgun", "sendgrid"
  41. define('MAIL_TRANSPORT', 'smtp');
  42.  
  43. // SMTP configuration to use when the "smtp" transport is chosen
  44. * removed for pastebin
  45.  
  46. // Sendmail command to use when the transport is "sendmail"
  47. define('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs');
  48.  
  49. // Run automatically database migrations
  50. // If set to false, you will have to run manually the SQL migrations from the CLI during the next Kanboard upgrade
  51. // Do not run the migrations from multiple processes at the same time (example: web page + background worker)
  52. define('DB_RUN_MIGRATIONS', true);
  53.  
  54. // Database driver: sqlite, mysql or postgres (sqlite by default)
  55. define('DB_DRIVER', 'mysql');
  56.  
  57. // Mysql/Postgres username
  58. * removed for pastebin
  59.  
  60. // Mysql/Postgres password
  61. * removed for pastebin
  62.  
  63. // Mysql/Postgres hostname
  64. define('DB_HOSTNAME', 'localhost');
  65.  
  66. // Mysql/Postgres database name
  67. * removed for pastebin
  68.  
  69. // Mysql/Postgres custom port (null = default port)
  70. define('DB_PORT', null);
  71.  
  72. // Mysql SSL key
  73. define('DB_SSL_KEY', null);
  74.  
  75. // Mysql SSL certificate
  76. define('DB_SSL_CERT', null);
  77.  
  78. // Mysql SSL CA
  79. define('DB_SSL_CA', null);
  80.  
  81. // Mysql SSL server verification, set to false if you don't want the Mysql driver to validate the certificate CN
  82. define('DB_VERIFY_SERVER_CERT', null);
  83.  
  84. // Timeout value for PDO attribute
  85. define('DB_TIMEOUT', 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. * removed for pastebin
  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', false);
  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. // Example for OpenLDAP: (&(objectClass=posixGroup)(memberUid=%s))
  174. define('LDAP_GROUP_USER_FILTER', '');
  175.  
  176. // LDAP attribute for the group name
  177. define('LDAP_GROUP_ATTRIBUTE_NAME', 'cn');
  178.  
  179. // Enable/disable the reverse proxy authentication
  180. define('REVERSE_PROXY_AUTH', false);
  181.  
  182. // Header name to use for the username
  183. define('REVERSE_PROXY_USER_HEADER', 'REMOTE_USER');
  184.  
  185. // Username of the admin, by default blank
  186. define('REVERSE_PROXY_DEFAULT_ADMIN', '');
  187.  
  188. // Default domain to use for setting the email address
  189. define('REVERSE_PROXY_DEFAULT_DOMAIN', '');
  190.  
  191. // Enable/disable remember me authentication
  192. define('REMEMBER_ME_AUTH', true);
  193.  
  194. // Enable or disable "Strict-Transport-Security" HTTP header
  195. define('ENABLE_HSTS', true);
  196.  
  197. // Enable or disable "X-Frame-Options: DENY" HTTP header
  198. define('ENABLE_XFRAME', true);
  199.  
  200. // Escape html inside markdown text
  201. define('MARKDOWN_ESCAPE_HTML', true);
  202.  
  203. // API alternative authentication header, the default is HTTP Basic Authentication defined in RFC2617
  204. define('API_AUTHENTICATION_HEADER', '');
  205.  
  206. // Enable/disable url rewrite
  207. define('ENABLE_URL_REWRITE', true);
  208.  
  209. // Hide login form, useful if all your users use Google/Github/ReverseProxy authentication
  210. define('HIDE_LOGIN_FORM', false);
  211.  
  212. // Disabling logout (useful for external SSO authentication)
  213. define('DISABLE_LOGOUT', false);
  214.  
  215. // Enable captcha after 3 authentication failure
  216. define('BRUTEFORCE_CAPTCHA', 3);
  217.  
  218. // Lock the account after 6 authentication failure
  219. define('BRUTEFORCE_LOCKDOWN', 6);
  220.  
  221. // Lock account duration in minute
  222. define('BRUTEFORCE_LOCKDOWN_DURATION', 15);
  223.  
  224. // Session duration in second (0 = until the browser is closed)
  225. // See http://php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
  226. define('SESSION_DURATION', 0);
  227.  
  228. // HTTP client proxy
  229. define('HTTP_PROXY_HOSTNAME', '');
  230. define('HTTP_PROXY_PORT', '3128');
  231. define('HTTP_PROXY_USERNAME', '');
  232. define('HTTP_PROXY_PASSWORD', '');
  233.  
  234. // Set to false to allow self-signed certificates
  235. define('HTTP_VERIFY_SSL_CERTIFICATE', true);
  236.  
  237. // TOTP (2FA) issuer name
  238. define('TOTP_ISSUER', 'Kanboard');
  239.  
  240. // Comma separated list of fields to not synchronize when using external authentication providers
  241. define('EXTERNAL_AUTH_EXCLUDE_FIELDS', 'username');
  242.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement