####################################################### ### Fotocodex nginx.conf BEGIN ####################################################### # user www-data www-data; worker_processes 4; error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; events { worker_connections 1024; #ebug_connection 127.0.0.1; } http { ## MIME types include mime.types; default_type application/octet-stream; ## Size Limits client_body_buffer_size 8k; client_header_buffer_size 1k; # Set the max size for file uploads to 50Mb client_max_body_size 800M; large_client_header_buffers 4 50k; ## Timeouts client_body_timeout 5; client_header_timeout 5; keepalive_timeout 5 5; send_timeout 5; proxy_read_timeout 90; ## General Options ignore_invalid_headers on; #limit_zone gulag $binary_remote_addr 2m; #limit_conn gulag 8; recursive_error_pages on; server_tokens off; server_name_in_redirect off; sendfile on; ## TCP options tcp_nopush on; tcp_nodelay on; ## Compression gzip on; gzip_buffers 16 8k; gzip_http_version 1.0; gzip_comp_level 9; gzip_min_length 0; gzip_types text/plain text/html text/css text/xml image/x-icon image/png; gzip_vary on; ## Log Format log_format main '$remote_addr $host $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio"'; # this is where you define your thin clusters. # you need one of these blocks for each cluster # and each one needs its own name to refer to it later. upstream thin { server 0.0.0.0:3000; server 0.0.0.0:3001; server 0.0.0.0:3002; } include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; } # ####################################################### ### Fotocodex nginx.conf END #######################################################