parent
448291ab3f
commit
f2c668931f
6 changed files with 86 additions and 27 deletions
@ -0,0 +1,9 @@ |
||||
{ |
||||
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/php71-tt-rss.sock -pass-header Authorization -idle-timeout 120 |
||||
_EOF |
||||
} |
||||
} |
@ -0,0 +1,36 @@ |
||||
[php71-tt-rss] |
||||
user = www |
||||
group = www |
||||
listen.owner = root |
||||
listen.group = www |
||||
listen.mode = 0660 |
||||
listen = /var/run/php-fpm/php71-tt-rss.sock |
||||
pm = dynamic |
||||
pm.max_children = 15 |
||||
pm.start_servers = 3 |
||||
pm.min_spare_servers = 3 |
||||
pm.max_spare_servers = 4 |
||||
pm.max_requests = 5000 |
||||
request_terminate_timeout = 30 |
||||
php_admin_value[session.save_path] = /var/lib/php/tt-rss/session |
||||
php_admin_value[soap.wsdl_cache_dir] = /var/lib/php/tt-rss/wsdlcache |
||||
php_admin_value[opcache.file_cache] = /var/lib/php/tt-rss/opcache |
||||
php_admin_value[upload_tmp_dir] = /var/lib/php/tt-rss/tmp |
||||
php_admin_value[error_log] = /var/log/php/tt-rss/error.log |
||||
slowlog = /var/log/php/tt-rss/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 |
Loading…
Reference in new issue