2014-07-20 14:09:41 +02:00
|
|
|
<?php
|
|
|
|
|
2015-01-16 14:23:32 +01:00
|
|
|
// Enable/Disable debug
|
|
|
|
define('DEBUG', false);
|
|
|
|
|
2015-02-25 17:29:23 +01:00
|
|
|
// Debug file path
|
2015-11-27 21:11:56 +01:00
|
|
|
define('DEBUG_FILE', __DIR__.DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'debug.log');
|
2015-02-25 17:29:23 +01:00
|
|
|
|
2015-10-14 15:56:23 +02:00
|
|
|
// Plugins directory
|
2015-11-27 21:11:56 +01:00
|
|
|
define('PLUGINS_DIR', 'plugins');
|
2015-10-14 15:56:23 +02:00
|
|
|
|
2015-11-27 21:11:56 +01:00
|
|
|
// Folder for uploaded files
|
|
|
|
define('FILES_DIR', 'data'.DIRECTORY_SEPARATOR.'files');
|
2015-02-25 17:29:23 +01:00
|
|
|
|
2014-10-22 21:21:37 +02:00
|
|
|
// E-mail address for the "From" header (notifications)
|
|
|
|
define('MAIL_FROM', 'yuno_email');
|
|
|
|
|
2015-08-16 17:04:56 +02:00
|
|
|
// Mail transport available: "smtp", "sendmail", "mail" (PHP mail function), "postmark", "mailgun", "sendgrid"
|
2014-10-22 21:21:37 +02:00
|
|
|
define('MAIL_TRANSPORT', 'mail');
|
|
|
|
|
|
|
|
// SMTP configuration to use when the "smtp" transport is chosen
|
|
|
|
define('MAIL_SMTP_HOSTNAME', '');
|
|
|
|
define('MAIL_SMTP_PORT', 25);
|
|
|
|
define('MAIL_SMTP_USERNAME', '');
|
|
|
|
define('MAIL_SMTP_PASSWORD', '');
|
2014-11-23 20:14:17 +01:00
|
|
|
define('MAIL_SMTP_ENCRYPTION', null); // Valid values are "null", "ssl" or "tls"
|
2014-10-22 21:21:37 +02:00
|
|
|
|
|
|
|
// Sendmail command to use when the transport is "sendmail"
|
|
|
|
define('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs');
|
|
|
|
|
|
|
|
// Database driver: sqlite, mysql or postgres (sqlite by default)
|
2014-07-20 14:09:41 +02:00
|
|
|
define('DB_DRIVER', 'mysql');
|
|
|
|
|
2014-10-22 21:21:37 +02:00
|
|
|
// Mysql/Postgres username
|
|
|
|
define('DB_USERNAME', 'yuno_dbuser');
|
2014-07-20 14:09:41 +02:00
|
|
|
|
2014-10-22 21:21:37 +02:00
|
|
|
// Mysql/Postgres password
|
|
|
|
define('DB_PASSWORD', 'yuno_dbpdw');
|
2014-07-20 14:09:41 +02:00
|
|
|
|
2014-10-22 21:21:37 +02:00
|
|
|
// Mysql/Postgres hostname
|
2014-07-20 14:09:41 +02:00
|
|
|
define('DB_HOSTNAME', 'localhost');
|
|
|
|
|
2014-10-22 21:21:37 +02:00
|
|
|
// Mysql/Postgres database name
|
|
|
|
define('DB_NAME', 'yuno_dbuser');
|
2014-07-20 14:09:41 +02:00
|
|
|
|
2015-04-21 17:56:32 +02:00
|
|
|
// Mysql/Postgres custom port (null = default port)
|
|
|
|
define('DB_PORT', null);
|
|
|
|
|
2014-07-20 14:09:41 +02:00
|
|
|
// Enable LDAP authentication (false by default)
|
2014-10-22 21:21:37 +02:00
|
|
|
define('LDAP_AUTH', false);
|
2014-07-20 14:09:41 +02:00
|
|
|
|
|
|
|
// LDAP server hostname
|
2014-10-22 21:21:37 +02:00
|
|
|
define('LDAP_SERVER', '');
|
2014-07-20 14:09:41 +02:00
|
|
|
|
|
|
|
// LDAP server port (389 by default)
|
|
|
|
define('LDAP_PORT', 389);
|
|
|
|
|
2015-10-14 15:56:23 +02:00
|
|
|
// By default, require certificate to be verified for ldaps:// style URL. Set to false to skip the verification
|
2014-07-20 14:09:41 +02:00
|
|
|
define('LDAP_SSL_VERIFY', true);
|
|
|
|
|
2014-12-22 19:21:10 +01:00
|
|
|
// Enable LDAP START_TLS
|
|
|
|
define('LDAP_START_TLS', false);
|
|
|
|
|
2015-12-29 01:27:58 +01:00
|
|
|
// By default Kanboard lowercase the ldap username to avoid duplicate users (the database is case sensitive)
|
|
|
|
// Set to true if you want to preserve the case
|
|
|
|
define('LDAP_USERNAME_CASE_SENSITIVE', false);
|
|
|
|
|
2015-10-14 15:56:23 +02:00
|
|
|
// LDAP bind type: "anonymous", "user" or "proxy"
|
2014-10-22 21:21:37 +02:00
|
|
|
define('LDAP_BIND_TYPE', 'anonymous');
|
|
|
|
|
2015-10-14 15:56:23 +02:00
|
|
|
// LDAP username to use with proxy mode
|
|
|
|
// LDAP username pattern to use with user mode
|
2014-07-20 14:09:41 +02:00
|
|
|
define('LDAP_USERNAME', null);
|
|
|
|
|
2015-10-14 15:56:23 +02:00
|
|
|
// LDAP password to use for proxy mode
|
2014-07-20 14:09:41 +02:00
|
|
|
define('LDAP_PASSWORD', null);
|
|
|
|
|
2015-12-29 01:27:58 +01:00
|
|
|
// LDAP DN for users
|
|
|
|
// Example for ActiveDirectory: CN=Users,DC=kanboard,DC=local
|
|
|
|
// Example for OpenLDAP: ou=People,dc=example,dc=com
|
|
|
|
define('LDAP_USER_BASE_DN', '');
|
2014-07-20 14:09:41 +02:00
|
|
|
|
2015-12-29 01:27:58 +01:00
|
|
|
// LDAP pattern to use when searching for a user account
|
2014-07-20 14:09:41 +02:00
|
|
|
// Example for ActiveDirectory: '(&(objectClass=user)(sAMAccountName=%s))'
|
|
|
|
// Example for OpenLDAP: 'uid=%s'
|
2015-12-29 01:27:58 +01:00
|
|
|
define('LDAP_USER_FILTER', '');
|
2014-07-20 14:09:41 +02:00
|
|
|
|
2015-12-29 01:27:58 +01:00
|
|
|
// LDAP attribute for username
|
2015-02-25 17:29:23 +01:00
|
|
|
// Example for ActiveDirectory: 'samaccountname'
|
|
|
|
// Example for OpenLDAP: 'uid'
|
2015-12-29 01:27:58 +01:00
|
|
|
define('LDAP_USER_ATTRIBUTE_USERNAME', 'uid');
|
|
|
|
|
|
|
|
// LDAP attribute for user full name
|
|
|
|
// Example for ActiveDirectory: 'displayname'
|
|
|
|
// Example for OpenLDAP: 'cn'
|
|
|
|
define('LDAP_USER_ATTRIBUTE_FULLNAME', 'cn');
|
|
|
|
|
|
|
|
// LDAP attribute for user email
|
|
|
|
define('LDAP_USER_ATTRIBUTE_EMAIL', 'mail');
|
2015-10-14 15:56:23 +02:00
|
|
|
|
2015-12-29 01:27:58 +01:00
|
|
|
// LDAP attribute to find groups in user profile
|
|
|
|
define('LDAP_USER_ATTRIBUTE_GROUPS', 'memberof');
|
2015-10-14 15:56:23 +02:00
|
|
|
|
2015-12-29 01:27:58 +01:00
|
|
|
// Allow automatic LDAP user creation
|
|
|
|
define('LDAP_USER_CREATION', true);
|
|
|
|
|
|
|
|
// LDAP DN for administrators
|
|
|
|
// Example: CN=Kanboard-Admins,CN=Users,DC=kanboard,DC=local
|
2015-10-14 15:56:23 +02:00
|
|
|
define('LDAP_GROUP_ADMIN_DN', '');
|
|
|
|
|
2015-12-29 01:27:58 +01:00
|
|
|
// LDAP DN for managers
|
|
|
|
// Example: CN=Kanboard Managers,CN=Users,DC=kanboard,DC=local
|
|
|
|
define('LDAP_GROUP_MANAGER_DN', '');
|
2015-02-25 17:29:23 +01:00
|
|
|
|
2015-12-29 01:27:58 +01:00
|
|
|
// Enable LDAP group provider for project permissions
|
|
|
|
// The end-user will be able to browse LDAP groups from the user interface and allow access to specified projects
|
|
|
|
define('LDAP_GROUP_PROVIDER', false);
|
|
|
|
|
|
|
|
// LDAP Base DN for groups
|
|
|
|
define('LDAP_GROUP_BASE_DN', '');
|
|
|
|
|
|
|
|
// LDAP group filter
|
|
|
|
// Example for ActiveDirectory: (&(objectClass=group)(sAMAccountName=%s*))
|
|
|
|
define('LDAP_GROUP_FILTER', '');
|
2015-02-25 17:29:23 +01:00
|
|
|
|
2015-12-29 01:27:58 +01:00
|
|
|
// LDAP attribute for the group name
|
|
|
|
define('LDAP_GROUP_ATTRIBUTE_NAME', 'cn');
|
2015-08-16 17:04:56 +02:00
|
|
|
|
2014-07-20 14:09:41 +02:00
|
|
|
// Enable/disable Google authentication
|
|
|
|
define('GOOGLE_AUTH', false);
|
|
|
|
|
|
|
|
// Google client id (Get this value from the Google developer console)
|
|
|
|
define('GOOGLE_CLIENT_ID', '');
|
|
|
|
|
|
|
|
// Google client secret key (Get this value from the Google developer console)
|
|
|
|
define('GOOGLE_CLIENT_SECRET', '');
|
|
|
|
|
|
|
|
// Enable/disable GitHub authentication
|
|
|
|
define('GITHUB_AUTH', false);
|
|
|
|
|
|
|
|
// GitHub client id (Copy it from your settings -> Applications -> Developer applications)
|
|
|
|
define('GITHUB_CLIENT_ID', '');
|
|
|
|
|
|
|
|
// GitHub client secret key (Copy it from your settings -> Applications -> Developer applications)
|
|
|
|
define('GITHUB_CLIENT_SECRET', '');
|
2014-10-22 21:21:37 +02:00
|
|
|
|
2015-09-08 22:16:28 +02:00
|
|
|
// Github oauth2 authorize url
|
|
|
|
define('GITHUB_OAUTH_AUTHORIZE_URL', 'https://github.com/login/oauth/authorize');
|
|
|
|
|
|
|
|
// Github oauth2 token url
|
|
|
|
define('GITHUB_OAUTH_TOKEN_URL', 'https://github.com/login/oauth/access_token');
|
|
|
|
|
2015-11-27 21:11:56 +01:00
|
|
|
// Github API url (don't forget the trailing slash)
|
2015-09-08 22:16:28 +02:00
|
|
|
define('GITHUB_API_URL', 'https://api.github.com/');
|
|
|
|
|
|
|
|
// Enable/disable Gitlab authentication
|
|
|
|
define('GITLAB_AUTH', false);
|
|
|
|
|
|
|
|
// Gitlab application id
|
|
|
|
define('GITLAB_CLIENT_ID', '');
|
|
|
|
|
|
|
|
// Gitlab application secret
|
|
|
|
define('GITLAB_CLIENT_SECRET', '');
|
|
|
|
|
|
|
|
// Gitlab oauth2 authorize url
|
|
|
|
define('GITLAB_OAUTH_AUTHORIZE_URL', 'https://gitlab.com/oauth/authorize');
|
|
|
|
|
|
|
|
// Gitlab oauth2 token url
|
|
|
|
define('GITLAB_OAUTH_TOKEN_URL', 'https://gitlab.com/oauth/token');
|
|
|
|
|
2015-11-27 21:11:56 +01:00
|
|
|
// Gitlab API url endpoint (don't forget the trailing slash)
|
2015-09-08 22:16:28 +02:00
|
|
|
define('GITLAB_API_URL', 'https://gitlab.com/api/v3/');
|
|
|
|
|
2014-10-22 21:21:37 +02:00
|
|
|
// Enable/disable the reverse proxy authentication
|
|
|
|
define('REVERSE_PROXY_AUTH', true);
|
|
|
|
|
|
|
|
// Header name to use for the username
|
|
|
|
define('REVERSE_PROXY_USER_HEADER', 'REMOTE_USER');
|
|
|
|
|
|
|
|
// Username of the admin, by default blank
|
|
|
|
define('REVERSE_PROXY_DEFAULT_ADMIN', 'yuno_admin');
|
|
|
|
|
|
|
|
// Default domain to use for setting the email address
|
|
|
|
define('REVERSE_PROXY_DEFAULT_DOMAIN', 'yuno_domain');
|
2014-11-23 20:14:17 +01:00
|
|
|
|
2015-09-08 22:16:28 +02:00
|
|
|
// Enable/disable remember me authentication
|
2015-10-14 15:44:44 +02:00
|
|
|
define('REMEMBER_ME_AUTH', false);
|
2015-09-08 22:16:28 +02:00
|
|
|
|
2014-11-23 20:14:17 +01:00
|
|
|
// Enable or disable "Strict-Transport-Security" HTTP header
|
2015-10-14 16:51:31 +02:00
|
|
|
define('ENABLE_HSTS', false);
|
2015-04-21 17:56:32 +02:00
|
|
|
|
|
|
|
// Enable or disable "X-Frame-Options: DENY" HTTP header
|
|
|
|
define('ENABLE_XFRAME', true);
|
|
|
|
|
2015-10-14 15:56:23 +02:00
|
|
|
// Enable syslog logging
|
|
|
|
define('ENABLE_SYSLOG', true);
|
|
|
|
|
2015-04-21 17:56:32 +02:00
|
|
|
// Escape html inside markdown text
|
|
|
|
define('MARKDOWN_ESCAPE_HTML', true);
|
2015-08-16 17:04:56 +02:00
|
|
|
|
|
|
|
// API alternative authentication header, the default is HTTP Basic Authentication defined in RFC2617
|
|
|
|
define('API_AUTHENTICATION_HEADER', '');
|
|
|
|
|
|
|
|
// Enable/disable url rewrite
|
|
|
|
define('ENABLE_URL_REWRITE', false);
|
|
|
|
|
|
|
|
// Hide login form, useful if all your users use Google/Github/ReverseProxy authentication
|
|
|
|
define('HIDE_LOGIN_FORM', true);
|
2015-09-08 22:16:28 +02:00
|
|
|
|
|
|
|
// Enable captcha after 3 authentication failure
|
|
|
|
define('BRUTEFORCE_CAPTCHA', 3);
|
|
|
|
|
|
|
|
// Lock the account after 6 authentication failure
|
|
|
|
define('BRUTEFORCE_LOCKDOWN', 6);
|
|
|
|
|
|
|
|
// Lock account duration in minute
|
|
|
|
define('BRUTEFORCE_LOCKDOWN_DURATION', 15);
|
|
|
|
|
|
|
|
// Session duration in second (0 = until the browser is closed)
|
|
|
|
// See http://php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
|
2015-10-26 14:49:22 +01:00
|
|
|
define('SESSION_DURATION', 0);
|
2015-10-14 15:56:23 +02:00
|
|
|
|
|
|
|
// HTTP client proxy
|
|
|
|
define('HTTP_PROXY_HOSTNAME', '');
|
|
|
|
define('HTTP_PROXY_PORT', '3128');
|
|
|
|
define('HTTP_PROXY_USERNAME', '');
|
|
|
|
define('HTTP_PROXY_PASSWORD', '');
|
|
|
|
|