Skip to content

Instantly share code, notes, and snippets.

View wuxujun's full-sized avatar
🌴
On vacation

xujun wu wuxujun

🌴
On vacation
View GitHub Profile
@wuxujun
wuxujun / nginx.conf
Created April 12, 2019 16:04 — 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
@wuxujun
wuxujun / default
Created July 12, 2018 14:44 — forked from dtomasi/default
Brew Nginx PHP7
server {
listen 80;
server_name localhost;
root /Users/YOUR_USERNAME/Sites;
access_log /Library/Logs/default.access.log main;
location / {
include /usr/local/etc/nginx/conf.d/php-fpm;
}