Skip to content

Instantly share code, notes, and snippets.

View shubhamcommits's full-sized avatar
🎯
Focusing

Shubham Singh shubhamcommits

🎯
Focusing
  • Always teleporting
View GitHub Profile
@shubhamcommits
shubhamcommits / 0. nginx_setup.sh
Created January 18, 2020 12:23 — forked from mikhailov/0. nginx_setup.sh
NGINX+SPDY with Unicorn. True Zero-Downtime unless migrations. Best practices.
# Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed.
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies.
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module
#
# Deployment structure
#
# SERVER:
# /etc/init.d/nginx (1. nginx)
# /home/app/public_html/app_production/current (Capistrano directory)
#