mirror of
https://github.com/YunoHost-Apps/omeka-s_ynh.git
synced 2024-09-03 19:56:05 +02:00
Merge 1a00d5270d
into 1fb6a45604
This commit is contained in:
commit
c3ba5309a0
4 changed files with 75 additions and 1 deletions
51
conf/local.config.php
Normal file
51
conf/local.config.php
Normal file
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
return [
|
||||
'logger' => [
|
||||
'log' => false,
|
||||
'priority' => \Laminas\Log\Logger::NOTICE,
|
||||
],
|
||||
'http_client' => [
|
||||
'sslcapath' => null,
|
||||
'sslcafile' => null,
|
||||
],
|
||||
'cli' => [
|
||||
'phpcli_path' => null,
|
||||
],
|
||||
'thumbnails' => [
|
||||
'types' => [
|
||||
'large' => ['constraint' => 800],
|
||||
'medium' => ['constraint' => 200],
|
||||
'square' => ['constraint' => 200],
|
||||
],
|
||||
'thumbnailer_options' => [
|
||||
'imagemagick_dir' => null,
|
||||
],
|
||||
],
|
||||
'translator' => [
|
||||
'locale' => 'en_US',
|
||||
],
|
||||
'service_manager' => [
|
||||
'aliases' => [
|
||||
'Omeka\File\Store' => 'Omeka\File\Store\Local',
|
||||
'Omeka\File\Thumbnailer' => 'Omeka\File\Thumbnailer\ImageMagick',
|
||||
],
|
||||
],
|
||||
'mail' => [
|
||||
'transport' => [
|
||||
'type' => 'smtp',
|
||||
'options' => [
|
||||
'name' => 'localhost',
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 25, // 465 for 'ssl', and 587 for 'tls'
|
||||
'connection_class' => 'smtp', // 'plain', 'login', or 'crammd5'
|
||||
'connection_config' => [
|
||||
'username' => '__APP__',
|
||||
'password' => '__MAIL_PWD__',
|
||||
'ssl' => null, // 'ssl' or 'tls'
|
||||
'use_complete_quit' => true,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
];
|
|
@ -57,8 +57,15 @@ ram.runtime = "50M"
|
|||
url = "https://github.com/omeka-s-modules/CSVImport/releases/download/v2.6.1/CSVImport-2.6.1.zip"
|
||||
sha256 = "95aa91802ef497f6fb33e7bf1d129b041dc11ce1dc2eca4a6790a29becd592ad"
|
||||
|
||||
[resources.system_user]
|
||||
[resources.sources.ldap]
|
||||
in_subdir = false
|
||||
url = "https://github.com/biblibre/omeka-s-module-Ldap/releases/download/v0.5.0/Ldap-0.5.0.zip"
|
||||
sha256 = "5f0e36c7438f045cec3b7427fd8ebb5f8722b26043cc2028d9577400862becd9"
|
||||
autoupdate.strategy = "latest_github_tag"
|
||||
|
||||
[resources.system_user]
|
||||
allow_email = true
|
||||
|
||||
[resources.install_dir]
|
||||
|
||||
[resources.permissions]
|
||||
|
|
|
@ -37,9 +37,12 @@ ynh_add_nginx_config
|
|||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
ynh_add_config --template="database.ini.default" --destination="$install_dir/config/database.ini"
|
||||
ynh_add_config --template="local.config.php" --destination="$install_dir/config/local.config.php"
|
||||
|
||||
chmod 400 "$install_dir/config/database.ini"
|
||||
chown $app "$install_dir/config/database.ini"
|
||||
chmod 400 "$install_dir/config/local.config.php"
|
||||
chown $app "$install_dir/config/local.config.php"
|
||||
|
||||
#=================================================
|
||||
# TWEAK IMAGICK CONFIGURATION TO ALLOW PDF THUMBNAILS GENERATION
|
||||
|
|
|
@ -20,6 +20,19 @@ ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="csvimport"
|
|||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# ADD A CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
ynh_add_config --template="database.ini.default" --destination="$install_dir/config/database.ini"
|
||||
ynh_add_config --template="local.config.php" --destination="$install_dir/config/local.config.php"
|
||||
|
||||
chmod 400 "$install_dir/config/database.ini"
|
||||
chown $app "$install_dir/config/database.ini"
|
||||
chmod 400 "$install_dir/config/local.config.php"
|
||||
chown $app "$install_dir/config/local.config.php"
|
||||
|
||||
#=================================================
|
||||
# PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue