Skip to content

Instantly share code, notes, and snippets.

View PeterLi's full-sized avatar

Peter Li PeterLi

  • Sydney
View GitHub Profile
@PeterLi
PeterLi / nginx.conf
Created November 28, 2018 23:06 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@PeterLi
PeterLi / nginx.conf
Created March 28, 2017 15:07 — forked from cpswan/nginx.conf
Using nginx to proxy to an AWS ELB
daemon off;
worker_processes 1;
events { worker_connections 1024; }
http{
sendfile on;