Closed nodesocket closed 10 years ago
@mjallday and @bninja can you guys take a look. Any further optimizations or problems? What should we use as the DNS resolv since 8.8.8.8 is blocked by AWS?
@nodesocket nice work. any need to limit what api calls we'll proxy (e.g.just info for balanced repos)?
@nodesocket not sure what resolver we should use nowaways but e.g js. uses an internal one (https://github.com/balanced/confidence/blob/master/cookbooks/nginx/templates/default/etc/nginx/conf.d/liberty.conf.erb#L34) so maybe use that too.
@bninja you're right - resolver 8.8.8.8;
will probably result in nginx timeouts.
Take a peek at my pr:
https://github.com/nodesocket/confidence/commit/354b87b9c52e96d8a96246db166ba24fc3023fdb
Here is some gangsta stuff, to cache GitHub API requests in nginx.
Outside of the server block (http):
In the server block:
Use like: