Skip to content

Instantly share code, notes, and snippets.

@lorenjohnson
Created August 16, 2016 23:32
Show Gist options
  • Save lorenjohnson/39996dc61e12330988160158c8adbf30 to your computer and use it in GitHub Desktop.
Save lorenjohnson/39996dc61e12330988160158c8adbf30 to your computer and use it in GitHub Desktop.
make-community-proxy
daemon off;
worker_processes auto;
events {
use epoll;
accept_mutex on;
worker_connections <%= worker_connections %>;
}
http {
gzip on;
gzip_comp_level 6;
gzip_min_length 512;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_vary on;
gzip_proxied any;
server_tokens off;
access_log logs/access.log;
error_log stderr;
include mime.types;
default_type application/octet-stream;
sendfile on;
#Must read the body in 5 seconds.
client_body_timeout 5;
server {
listen <%= port %> reuseport;
charset <%= encoding %>;
port_in_redirect off;
keepalive_timeout 5;
root <%= root %>;
location "/projects/" {
proxy_pass "https://make.dev.hackster.io/";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment