Skip to content

Instantly share code, notes, and snippets.

@krusty
Created March 20, 2012 15:25
Show Gist options
  • Save krusty/2136990 to your computer and use it in GitHub Desktop.
Save krusty/2136990 to your computer and use it in GitHub Desktop.
Nginx proxy for assembla api
upstream assembla {
server www.assembla.com;
}
server {
listen *:8000;
server_name localhost;
rewrite_log on;
root /home/lucas/proyects/assembla.js;
index ticket.html;
location /tickets/ {
try_files $uri $uri/;
}
location /api {
rewrite ^/api/(.*)$ /$1 break;
proxy_set_header Host "www.assembla.com";
proxy_pass http://assembla;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment