mirror of
https://github.com/YunoHost-Apps/xbackbone_ynh.git
synced 2024-09-03 19:15:53 +02:00
fix
This commit is contained in:
parent
8efa8573d8
commit
10c9f984ea
5 changed files with 27 additions and 42 deletions
|
@ -1,15 +1,27 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'base_url' => 'https://__DOMAIN____PATH__', // no trailing slash
|
||||
'storage' => [
|
||||
return array(
|
||||
'base_url' => 'https://__DOMAIN____PATH__',
|
||||
'db' => array (
|
||||
'connection' => 'mysql',
|
||||
'dsn' => 'host=localhost;port=3306;dbname=__DB_USER__',
|
||||
'username' => '__DB_USER__',
|
||||
'password' => '__DB_PWD__',
|
||||
),
|
||||
|
||||
'storage' => array(
|
||||
'driver' => 'local',
|
||||
'path' => '__DATA_DIR__/storage',
|
||||
],
|
||||
'db' => [
|
||||
'connection' => 'sqlite',
|
||||
'dsn' => '__INSTALL_DIR__/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=',
|
||||
),
|
||||
);
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
|
||||
return array(
|
||||
'base_url' => 'https://__DOMAIN____PATH__',
|
||||
'db' => array (
|
||||
'connection' => 'mysql',
|
||||
'dsn' => 'host=localhost;port=3306;dbname=__DB_USER__',
|
||||
'username' => '__DB_USER__',
|
||||
'password' => '__DB_PWD__',
|
||||
),
|
||||
|
||||
'storage' => array(
|
||||
'driver' => 'local',
|
||||
'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=',
|
||||
),
|
||||
);
|
|
@ -6,7 +6,7 @@ location __PATH__/ {
|
|||
|
||||
index index.html index.htm index.php;
|
||||
|
||||
#client_max_body_size 1G;
|
||||
client_max_body_size 1G;
|
||||
|
||||
try_files $uri $uri/ __PATH__/index.php;
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ ram.runtime = "50M"
|
|||
main.url = "/"
|
||||
|
||||
[resources.apt]
|
||||
packages = "mariadb-server php8.2-sqlite3 php8.2-mysql php8.2-gd php8.2-fileinfo php8.2-zip php8.2-ldap"
|
||||
packages = "mariadb-server php8.2-intl php8.2-mysql php8.2-gd php8.2-fileinfo php8.2-zip php8.2-ldap"
|
||||
|
||||
[resources.database]
|
||||
type = "mysql"
|
||||
|
|
|
@ -41,7 +41,7 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
ynh_add_config --template="../conf/config_old.php" --destination="$install_dir/config.php"
|
||||
ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
|
||||
|
||||
chmod 400 "$install_dir/config.php"
|
||||
chown $app:$app "$install_dir/config.php"
|
||||
|
|
Loading…
Add table
Reference in a new issue