Skip to content

Instantly share code, notes, and snippets.

View indapublic's full-sized avatar
🏠
Working from home

Vasilii indapublic

🏠
Working from home
View GitHub Profile
worker_processes 1;
error_log /var/log/nginx/error.log debug;
events {
worker_connections 30;
}
http {
include mime.types;
#!/bin/bash
#
# validate nginx config
#
# depends upon a symbolic link from /var/apps/redirector to dist directory
# and a build of nginx which supports real_ip and other extensions
#
# probably best to build a chroot'd tree containing a complete nginx server
# though that's a lot of work to copy in shared libraries, etc
listen.owner = nginx
listen.group = nginx
listen.mode = 0664
listen.allowed_clients = 127.0.0.1
pm = dynamic
pm.max_children = 50
pm.start_servers = 15
pm.min_spare_servers = 5
pm.max_spare_servers = 25
pm.process_idle_timeout = 60s
upstream php-fpm {
server unix:/var/run/php-fpm/php-fpm.sock;
}
proxy_connect_timeout 900;
proxy_send_timeout 900;
proxy_read_timeout 900;
fastcgi_send_timeout 900;
fastcgi_read_timeout 900;
proxy_buffer_size 128k;
#!/bin/bash
# To use:
# wget https://gist.githubusercontent.com/indapublic/11370314/raw/7cf3d956a02d90679988a1f1ca660104ec8e1fbc/amazon-install-redis.sh
# chmod 777 amazon-install-redis.sh
# ./amazon-install-redis.sh
###############################################
echo "*****************************************"
echo " 1. Prerequisites: Install updates, set time zones, install GCC and make"
echo "*****************************************"
#sudo yum -y update