Skip to content

Instantly share code, notes, and snippets.

@colthreepv
Created August 6, 2013 09:08
Show Gist options
  • Save colthreepv/6162947 to your computer and use it in GitHub Desktop.
Save colthreepv/6162947 to your computer and use it in GitHub Desktop.
nginx site for forwarding github
server {
listen 80;
server_name *.github;
location / {
proxy_set_header Host api.github.com;
proxy_pass https://api.github.com/;
}
access_log /var/log/nginx/github_access.log combined;
error_log /var/log/nginx/github_error.log error;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment