Compare commits
20 Commits
Author | SHA1 | Date |
---|---|---|
Daniel Berteaud | 20510a9c59 | 8 years ago |
Daniel Berteaud | 861925abb6 | 8 years ago |
Daniel Berteaud | 3168a47f08 | 8 years ago |
Daniel Berteaud | 89b9699283 | 8 years ago |
Daniel Berteaud | 489aa0a7b3 | 8 years ago |
Daniel Berteaud | 40668f71d9 | 8 years ago |
Daniel Berteaud | 0dfa5b6d3b | 8 years ago |
Daniel Berteaud | b88d97b5ca | 8 years ago |
Daniel Berteaud | b560124a22 | 8 years ago |
Daniel Berteaud | 0a2bdb6d9a | 8 years ago |
Daniel Berteaud | b810bb40f8 | 8 years ago |
Daniel Berteaud | 6d146dc619 | 8 years ago |
Daniel Berteaud | c5dec2f000 | 8 years ago |
Daniel Berteaud | 293d980188 | 8 years ago |
Daniel Berteaud | bf888dd671 | 8 years ago |
Daniel Berteaud | f2c668931f | 8 years ago |
Daniel Berteaud | 448291ab3f | 9 years ago |
Daniel Berteaud | f8bf3150ed | 9 years ago |
Daniel Berteaud | 4d6f83856a | 10 years ago |
Daniel Berteaud | a31e947881 | 10 years ago |
7 changed files with 107 additions and 31 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/php__PHP_VERSION__-tt-rss.sock -pass-header Authorization -idle-timeout 120 |
||||
_EOF |
||||
} |
||||
} |
@ -0,0 +1,49 @@ |
||||
{ |
||||
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