diff --git a/conf/config.php b/conf/config.php index 908e638..0ab80bd 100644 --- a/conf/config.php +++ b/conf/config.php @@ -1,16 +1,25 @@ 'XBackBone', +return array( 'base_url' => 'https://__DOMAIN____PATH__', - 'storage' => [ + 'db' => array ( + 'connection' => 'mysql', + 'dsn' => 'host=localhost;port=3306;dbname=__BD_NAME__', + 'username' => '__BD_NAME__', + 'password' => '__BD_PWD__', + ), + 'storage' => array( 'driver' => 'local', - 'path' => './storage', - ], - 'db' => [ - 'connection' => 'sqlite', - 'dsn' => 'resources/database/xbackbone.db', - 'username' => null, - 'password' => null, - ] -]; + 'path' => '__DATA_DIR__', + ), + 'ldap' => array( + 'enabled' => true, + 'schema' => 'ldap', + 'host' => 'ldap://127.0.0.1', + 'port' => 389, + 'base_domain' => 'dc=yunohost,dc=org', + 'search_filter' => '(&(|(objectclass=posixAccount))(uid={{username}})(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))', + 'user_domain' => 'ou=Users', + 'rdn_attribute' => 'uid=', + ), +);