forked from leftypol/leftypol
Apply suggested changes
This commit is contained in:
parent
3191ef3105
commit
39412b4427
5 changed files with 73 additions and 88 deletions
|
@ -24,7 +24,6 @@ services:
|
|||
dockerfile: ./docker/php/Dockerfile
|
||||
volumes:
|
||||
- ./:/code
|
||||
- ./docker/php/custom.ini:/usr/local/etc/php/conf.d/custom.ini
|
||||
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
|
||||
networks:
|
||||
leftchan_net:
|
||||
|
|
|
@ -56,8 +56,6 @@ server {
|
|||
proxy_set_header Forwarded-Request-Id $x_request_id;
|
||||
fastcgi_pass php-upstream;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_buffers 16 16k;
|
||||
fastcgi_buffer_size 32k;
|
||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||
fastcgi_read_timeout 600;
|
||||
include fastcgi_params;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# https://github.com/dead-guru/devichan/blob/master/nginx/nginx.conf
|
||||
|
||||
user leftypol;
|
||||
worker_processes 4;
|
||||
worker_processes auto;
|
||||
# daemon off;
|
||||
# error_log /var/log/nginx/error.log warn;
|
||||
error_log /dev/stdout warn;
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
; based on https://github.com/dead-guru/devichan/blob/master/php-fpm/custom.ini
|
||||
|
||||
memory_limit = 2G
|
||||
max_execution_time = 30
|
||||
upload_max_filesize = 2G
|
||||
post_max_size = 2G
|
||||
pm = dynamic
|
||||
pm.max_children = 20
|
||||
pm.start_servers = 5
|
||||
pm.min_spare_servers = 3
|
||||
pm.max_spare_servers = 10
|
|
@ -2,9 +2,8 @@
|
|||
user = leftypol
|
||||
group = leftypol
|
||||
listen = 127.0.0.1:9000
|
||||
pm = dynamic
|
||||
pm.max_children = 200
|
||||
pm.start_servers = 10
|
||||
pm = static
|
||||
pm.max_children = 16
|
||||
pm.start_servers = 2
|
||||
pm.min_spare_servers = 1
|
||||
pm.max_spare_servers = 20
|
||||
pm.max_requests = 20000
|
||||
pm.max_spare_servers = 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue