mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
189 lines
5.8 KiB
PHP
189 lines
5.8 KiB
PHP
<?php
|
|
|
|
/*******************************************************************/
|
|
/* Rename this file to config.php if you want to change the values */
|
|
/*******************************************************************/
|
|
|
|
// Enable/Disable debug
|
|
define('DEBUG', false);
|
|
|
|
// Debug file path
|
|
define('DEBUG_FILE', __DIR__.DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'debug.log');
|
|
|
|
// Plugins directory
|
|
define('PLUGINS_DIR', 'plugins');
|
|
|
|
// Folder for uploaded files
|
|
define('FILES_DIR', 'data'.DIRECTORY_SEPARATOR.'files');
|
|
|
|
// E-mail address for the "From" header (notifications)
|
|
define('MAIL_FROM', 'notifications@kanboard.local');
|
|
|
|
// Mail transport available: "smtp", "sendmail", "mail" (PHP mail function), "postmark", "mailgun", "sendgrid"
|
|
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', '');
|
|
define('MAIL_SMTP_ENCRYPTION', null); // Valid values are "null", "ssl" or "tls"
|
|
|
|
// 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)
|
|
define('DB_DRIVER', 'sqlite');
|
|
|
|
// Mysql/Postgres username
|
|
define('DB_USERNAME', 'root');
|
|
|
|
// Mysql/Postgres password
|
|
define('DB_PASSWORD', '');
|
|
|
|
// Mysql/Postgres hostname
|
|
define('DB_HOSTNAME', 'localhost');
|
|
|
|
// Mysql/Postgres database name
|
|
define('DB_NAME', 'kanboard');
|
|
|
|
// Mysql/Postgres custom port (null = default port)
|
|
define('DB_PORT', null);
|
|
|
|
// Enable LDAP authentication (false by default)
|
|
define('LDAP_AUTH', false);
|
|
|
|
// LDAP server hostname
|
|
define('LDAP_SERVER', '');
|
|
|
|
// LDAP server port (389 by default)
|
|
define('LDAP_PORT', 389);
|
|
|
|
// By default, require certificate to be verified for ldaps:// style URL. Set to false to skip the verification
|
|
define('LDAP_SSL_VERIFY', true);
|
|
|
|
// Enable LDAP START_TLS
|
|
define('LDAP_START_TLS', false);
|
|
|
|
// 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);
|
|
|
|
// LDAP bind type: "anonymous", "user" or "proxy"
|
|
define('LDAP_BIND_TYPE', 'anonymous');
|
|
|
|
// LDAP username to use with proxy mode
|
|
// LDAP username pattern to use with user mode
|
|
define('LDAP_USERNAME', null);
|
|
|
|
// LDAP password to use for proxy mode
|
|
define('LDAP_PASSWORD', null);
|
|
|
|
// 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', '');
|
|
|
|
// LDAP pattern to use when searching for a user account
|
|
// Example for ActiveDirectory: '(&(objectClass=user)(sAMAccountName=%s))'
|
|
// Example for OpenLDAP: 'uid=%s'
|
|
define('LDAP_USER_FILTER', '');
|
|
|
|
// LDAP attribute for username
|
|
// Example for ActiveDirectory: 'samaccountname'
|
|
// Example for OpenLDAP: 'uid'
|
|
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');
|
|
|
|
// LDAP attribute to find groups in user profile
|
|
define('LDAP_USER_ATTRIBUTE_GROUPS', 'memberof');
|
|
|
|
// Allow automatic LDAP user creation
|
|
define('LDAP_USER_CREATION', true);
|
|
|
|
// LDAP DN for administrators
|
|
// Example: CN=Kanboard-Admins,CN=Users,DC=kanboard,DC=local
|
|
define('LDAP_GROUP_ADMIN_DN', '');
|
|
|
|
// LDAP DN for managers
|
|
// Example: CN=Kanboard Managers,CN=Users,DC=kanboard,DC=local
|
|
define('LDAP_GROUP_MANAGER_DN', '');
|
|
|
|
// 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', '');
|
|
|
|
// LDAP attribute for the group name
|
|
define('LDAP_GROUP_ATTRIBUTE_NAME', 'cn');
|
|
|
|
// Enable/disable the reverse proxy authentication
|
|
define('REVERSE_PROXY_AUTH', false);
|
|
|
|
// 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', '');
|
|
|
|
// Default domain to use for setting the email address
|
|
define('REVERSE_PROXY_DEFAULT_DOMAIN', '');
|
|
|
|
// Enable/disable remember me authentication
|
|
define('REMEMBER_ME_AUTH', true);
|
|
|
|
// Enable or disable "Strict-Transport-Security" HTTP header
|
|
define('ENABLE_HSTS', true);
|
|
|
|
// Enable or disable "X-Frame-Options: DENY" HTTP header
|
|
define('ENABLE_XFRAME', true);
|
|
|
|
// Enable syslog logging
|
|
define('ENABLE_SYSLOG', true);
|
|
|
|
// Escape html inside markdown text
|
|
define('MARKDOWN_ESCAPE_HTML', true);
|
|
|
|
// 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', false);
|
|
|
|
// Disabling logout (for external SSO authentication)
|
|
define('DISABLE_LOGOUT', false);
|
|
|
|
// 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
|
|
define('SESSION_DURATION', 0);
|
|
|
|
// HTTP client proxy
|
|
define('HTTP_PROXY_HOSTNAME', '');
|
|
define('HTTP_PROXY_PORT', '3128');
|
|
define('HTTP_PROXY_USERNAME', '');
|
|
define('HTTP_PROXY_PASSWORD', '');
|