Put PHP-FPM pool conf in www.conf

master
Daniel Berteaud 8 years ago
parent 6d146dc619
commit b810bb40f8
  1. 2
      createlinks
  2. 11
      root/etc/e-smith/templates/etc/opt/remi/php71/php-fpm.d/www.conf/10All

@ -6,7 +6,6 @@ use esmith::Build::CreateLinks qw(:all);
templates2events("/etc/e-smith/sql/init/tt-rss", qw(bootstrap-console-save webapps-update)); templates2events("/etc/e-smith/sql/init/tt-rss", qw(bootstrap-console-save webapps-update));
templates2events("/usr/share/tt-rss/config.php", qw(bootstrap-console-save webapps-update)); templates2events("/usr/share/tt-rss/config.php", qw(bootstrap-console-save webapps-update));
templates2events("/etc/cron.d/tt-rss", qw(bootstrap-console-save webapps-update)); templates2events("/etc/cron.d/tt-rss", qw(bootstrap-console-save webapps-update));
templates2events("/etc/opt/remi/php71/php-fpm.d/tt-rss.conf", qw(bootstrap-console-save webapps-update));
# tt-rss daemon # tt-rss daemon
safe_symlink("restart", "root/etc/e-smith/events/webapps-update/services2adjust/tt-rss"); safe_symlink("restart", "root/etc/e-smith/events/webapps-update/services2adjust/tt-rss");
@ -22,4 +21,3 @@ service_link_enhanced("tt-rss", "K10", "0");
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/usr/share/tt-rss/config.php/template-begin"); safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/usr/share/tt-rss/config.php/template-begin");
safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/usr/share/tt-rss/config.php/template-end"); safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/usr/share/tt-rss/config.php/template-end");
safe_symlink("/etc/e-smith/templates-default/template-begin-ini", "root/etc/e-smith/templates/etc/opt/remi/php71/php-fpm.d/tt-rss.conf/template-begin");

@ -1,3 +1,7 @@
{
if ((${'tt-rss'}{status} || 'disabled') eq 'enabled){
$OUT .=<<_EOF;
[php71-tt-rss] [php71-tt-rss]
user = www user = www
group = www group = www
@ -34,3 +38,10 @@ php_admin_flag[file_upload] = off
php_admin_flag[session.cookie_httponly] = on php_admin_flag[session.cookie_httponly] = on
php_admin_flag[allow_url_include] = off php_admin_flag[allow_url_include] = off
php_admin_value[session.save_handler] = files php_admin_value[session.save_handler] = files
_EOF
}
else{
$OUT .= '; Tiny Tiny RSS is disabled';
}
}
Loading…
Cancel
Save