Compare commits
27 Commits
Author | SHA1 | Date |
---|---|---|
Daniel Berteaud | 8528f83fb0 | 7 years ago |
Daniel Berteaud | 1e3940ebcf | 7 years ago |
Daniel Berteaud | ea995a00cd | 7 years ago |
Daniel Berteaud | e16a36fe97 | 7 years ago |
Daniel Berteaud | fd758b930b | 7 years ago |
Daniel Berteaud | ac89dac938 | 7 years ago |
Daniel Berteaud | 65b0c3e60a | 7 years ago |
Daniel Berteaud | 8dacc3e1a7 | 8 years ago |
Daniel Berteaud | 2e4c0c312a | 8 years ago |
Daniel Berteaud | 5e9a9489de | 8 years ago |
Daniel Berteaud | f6928fbd5b | 8 years ago |
Daniel Berteaud | f1ab5e2195 | 8 years ago |
Daniel Berteaud | 47287ab61f | 8 years ago |
Daniel Berteaud | 18bc9ed30a | 8 years ago |
Daniel Berteaud | f9da9e670f | 8 years ago |
Daniel Berteaud | 9d8dcb147c | 8 years ago |
Daniel Berteaud | 66cd0917bb | 8 years ago |
Daniel Berteaud | 6c1b33e547 | 8 years ago |
Daniel Berteaud | 52db1b9e75 | 8 years ago |
Daniel Berteaud | 1affd0666b | 8 years ago |
Daniel Berteaud | 8300d5f428 | 8 years ago |
Daniel Berteaud | e2c18a4b78 | 8 years ago |
Daniel Berteaud | a21a1117c2 | 8 years ago |
Daniel Berteaud | df1608db0f | 9 years ago |
Daniel Berteaud | c1b0d270c0 | 9 years ago |
Daniel Berteaud | 1d7195efc1 | 9 years ago |
Daniel Berteaud | eba4367fc5 | 9 years ago |
10 changed files with 126 additions and 16 deletions
@ -0,0 +1,3 @@ |
|||||||
|
the .tito/packages directory contains metadata files |
||||||
|
named after their packages. Each file has the latest tagged |
||||||
|
version and the project's relative directory. |
@ -0,0 +1 @@ |
|||||||
|
0.2.3-1 ./ |
@ -0,0 +1 @@ |
|||||||
|
../../tito_libs/releasers.conf |
@ -0,0 +1,6 @@ |
|||||||
|
[buildconfig] |
||||||
|
builder = tito.builder.Builder |
||||||
|
tagger = tito.tagger.VersionTagger |
||||||
|
changelog_do_not_remove_cherrypick = 0 |
||||||
|
changelog_format = %s (%ae) |
||||||
|
lib_dir = ../tito_libs |
@ -1,2 +1,2 @@ |
|||||||
#!/bin/sh |
#!/bin/sh |
||||||
su -s /bin/bash - -c "cd /usr/share/dl/include/scripts && /usr/bin/php ./expire.php" |
su -s /bin/bash -c "cd /usr/share/dl/include/scripts && /usr/bin/php__PHP_VERSION__ ./expire.php" |
||||||
|
@ -0,0 +1,9 @@ |
|||||||
|
{ |
||||||
|
if ($fastcgi_mod eq 'mod_fastcgi'){ |
||||||
|
$OUT .=<<_EOF; |
||||||
|
Action phpdl-fastcgi /php-cgi-bin/phpdl-wrapper |
||||||
|
Alias /php-cgi-bin/phpdl-wrapper /var/www/php-cgi-bin/phpdl-wrapper |
||||||
|
FastCgiExternalServer /var/www/php-cgi-bin/phpdl-wrapper -socket /var/run/php-fpm/php__PHP_VERSION__-dl.sock -pass-header Authorization -idle-timeout 120 |
||||||
|
_EOF |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,52 @@ |
|||||||
|
{ |
||||||
|
|
||||||
|
if ($PHP_VERSION eq '__PHP_VERSION__'){ |
||||||
|
if (($dl{'status'} || 'disabled') eq 'enabled'){ |
||||||
|
my $max_upload_size = ($dl{MaxUploadSize} || '4096'); |
||||||
|
$max_upload_size .= 'M' if ($max_upload_size =~ m/^\d+$/); |
||||||
|
my $id = 'dl'; |
||||||
|
$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 |
||||||
|
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/dl/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] = 0 |
||||||
|
php_admin_value[post_max_size] = $max_upload_size |
||||||
|
php_admin_value[upload_max_filesize] = $max_upload_size |
||||||
|
php_admin_value[disable_functions] = system, show_source, symlink, exec, dl, shell_exec, passthru, phpinfo, escapeshellarg, escapeshellcmd |
||||||
|
php_admin_value[open_basedir] = /usr/share/dl:/etc/dl.php:/var/lib/dl:/var/log/dl.log:/var/lib/php/dl |
||||||
|
php_admin_flag[allow_url_fopen] = off |
||||||
|
php_admin_flag[file_upload] = on |
||||||
|
php_admin_flag[session.cookie_httponly] = on |
||||||
|
php_admin_flag[allow_url_include] = off |
||||||
|
php_admin_value[session.save_handler] = files |
||||||
|
php_admin_flag[output_buffering] = off |
||||||
|
|
||||||
|
_EOF |
||||||
|
|
||||||
|
} |
||||||
|
else{ |
||||||
|
$OUT .= '; Dl is disabled'; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue