Skip to content

Instantly share code, notes, and snippets.

@andrewvc
Created December 19, 2016 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewvc/7d8852bc4abe5477a684dbce3d10977b to your computer and use it in GitHub Desktop.
Save andrewvc/7d8852bc4abe5477a684dbce3d10977b to your computer and use it in GitHub Desktop.
worker_processes 1;
events {
worker_connections 1024;
}
http {
#include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
server {
listen 8080;
location / {
resolver 8.8.8.8;
proxy_pass http://$http_host$uri$is_args$args;
}
error_page 500 502 503 504 /50x.html;
error_log /Users/andrewvc/nginx_error_log;
location = /50x.html {
root html;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment