Compare commits
No commits in common. 'master' and 'sme9' have entirely different histories.
7 changed files with 31 additions and 107 deletions
@ -1,9 +0,0 @@ |
||||
{ |
||||
if ($fastcgi_mod eq 'mod_fastcgi'){ |
||||
$OUT .=<<_EOF; |
||||
Action phptt-rss-fastcgi /php-cgi-bin/phptt-rss-wrapper |
||||
Alias /php-cgi-bin/phptt-rss-wrapper /var/www/php-cgi-bin/phptt-rss-wrapper |
||||
FastCgiExternalServer /var/www/php-cgi-bin/phptt-rss-wrapper -socket /var/run/php-fpm/php__PHP_VERSION__-tt-rss.sock -pass-header Authorization -idle-timeout 120 |
||||
_EOF |
||||
} |
||||
} |
@ -1,49 +0,0 @@ |
||||
{ |
||||
if ($PHP_VERSION eq '__PHP_VERSION__'){ |
||||
if ((${'tt-rss'}{status} || 'disabled') eq 'enabled'){ |
||||
my $id = 'tt-rss'; |
||||
$OUT .=<<_EOF; |
||||
|
||||
[php$PHP_VERSION-$id] |
||||
user = www |
||||
group = www |
||||
listen.owner = root |
||||
listen.group = www |
||||
listen.mode = 0660 |
||||
listen = /var/run/php-fpm/php$PHP_VERSION-$id.sock |
||||
pm = dynamic |
||||
pm.max_children = 15 |
||||
pm.start_servers = 3 |
||||
pm.min_spare_servers = 3 |
||||
pm.max_spare_servers = 4 |
||||
pm.max_requests = 1000 |
||||
request_terminate_timeout = 30 |
||||
php_admin_value[session.save_path] = /var/lib/php/$id/session |
||||
php_admin_value[opcache.file_cache] = /var/lib/php/$id/opcache |
||||
php_admin_value[upload_tmp_dir] = /var/lib/php/$id/tmp |
||||
php_admin_value[error_log] = /var/log/php/$id/error.log |
||||
slowlog = /var/log/php/$id/slow.log |
||||
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f php@{ $DomainName } |
||||
php_admin_flag[display_errors] = off |
||||
php_admin_flag[log_errors] = on |
||||
php_admin_value[error_log] = syslog |
||||
php_admin_value[memory_limit] = 128M |
||||
php_admin_value[max_execution_time] = 30 |
||||
php_admin_value[post_max_size] = 2M |
||||
php_admin_value[upload_max_filesize] = 1M |
||||
php_admin_value[max_input_time] = 60 |
||||
php_admin_value[disable_functions] = system, show_source, symlink, exec, dl, shell_exec, passthru, phpinfo, escapeshellarg, escapeshellcmd |
||||
php_admin_value[open_basedir] = /usr/share/tt-rss:/var/lock/tt-rss:/var/cache/tt-rss:/var/lib/php/tt-rss |
||||
php_admin_flag[allow_url_fopen] = on |
||||
php_admin_flag[file_upload] = off |
||||
php_admin_flag[session.cookie_httponly] = on |
||||
php_admin_flag[allow_url_include] = off |
||||
php_admin_value[session.save_handler] = files |
||||
|
||||
_EOF |
||||
} |
||||
else{ |
||||
$OUT .= '; Tiny Tiny RSS is disabled'; |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue