Skip to content

Instantly share code, notes, and snippets.

@mikeal
Created November 14, 2009 06:29
Show Gist options
  • Save mikeal/234410 to your computer and use it in GitHub Desktop.
Save mikeal/234410 to your computer and use it in GitHub Desktop.
location / {
proxy_pass http://localhost:5984;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /firefox/newFailures {
set $p "http://localhost:5984/firefox/_design/failures/_list/newFailures/newFailures";
if ($query_string = "") {
set $p "http://localhost:5984/firefox/_design/failures/_list/newFailures/newFailures?limit=20";
}
proxy_pass $p;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /firefox/testInfo/ {
rewrite ^/firefox/testInfo/(.*)$ "/firefox/_design/results/_list/testsByName/testsByName?startkey=[$1,{}]&endkey=[$1,null]&descending=true" ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment