forked from GithubBackups/vichan
Apply suggested changes
This commit is contained in:
parent
460aee0dad
commit
7ac0460b0a
@ -24,7 +24,6 @@ services:
|
|||||||
dockerfile: ./docker/php/Dockerfile
|
dockerfile: ./docker/php/Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/code
|
- ./:/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
|
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
|
||||||
networks:
|
networks:
|
||||||
leftchan_net:
|
leftchan_net:
|
||||||
|
@ -56,8 +56,6 @@ server {
|
|||||||
proxy_set_header Forwarded-Request-Id $x_request_id;
|
proxy_set_header Forwarded-Request-Id $x_request_id;
|
||||||
fastcgi_pass php-upstream;
|
fastcgi_pass php-upstream;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_buffers 16 16k;
|
|
||||||
fastcgi_buffer_size 32k;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||||
fastcgi_read_timeout 600;
|
fastcgi_read_timeout 600;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# https://github.com/dead-guru/devichan/blob/master/nginx/nginx.conf
|
# https://github.com/dead-guru/devichan/blob/master/nginx/nginx.conf
|
||||||
|
|
||||||
user leftypol;
|
user leftypol;
|
||||||
worker_processes 4;
|
worker_processes auto;
|
||||||
|
|
||||||
error_log /dev/stdout warn;
|
error_log /dev/stdout warn;
|
||||||
pid /var/run/nginx.pid;
|
pid /var/run/nginx.pid;
|
||||||
@ -12,7 +12,7 @@ events {
|
|||||||
http {
|
http {
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
#access_log /var/log/nginx/access.log;
|
|
||||||
# Switch logging to console out to view via Docker
|
# Switch logging to console out to view via Docker
|
||||||
access_log /dev/stdout;
|
access_log /dev/stdout;
|
||||||
error_log /dev/stdout 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
|
user = leftypol
|
||||||
group = leftypol
|
group = leftypol
|
||||||
listen = 127.0.0.1:9000
|
listen = 127.0.0.1:9000
|
||||||
pm = dynamic
|
pm = static
|
||||||
pm.max_children = 200
|
pm.max_children = 16
|
||||||
pm.start_servers = 10
|
pm.start_servers = 2
|
||||||
pm.min_spare_servers = 1
|
pm.min_spare_servers = 1
|
||||||
pm.max_spare_servers = 20
|
pm.max_spare_servers = 3
|
||||||
pm.max_requests = 20000
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user