5 Commits
Author SHA1 Message Date
James Ide 6a40208155 [Auth] Add an option to connect to GitHub anonymously for public repos
Adds a new option called `GITHUB_ANONYMOUS` to signal that you want to public repositories that don't require any authentication. If you don't set this to true, Nuts will continue to throw an error if you don't provide authentication credentials.

This uses the `getenv` package, which handles env var values like "true" and "1" as bash would.
2016-03-19 12:37:19 -07:00
James Ide 8ff7ba3692 Introduce a "TRUST_PROXY" env var that sets Express's "trust proxy" setting
This is for full HTTPS support when a Nuts server sits behind a reverse proxy like NGINX. Often NGINX will accept HTTPS connections and proxy them to a Node server that accepts only HTTP (in this case, the Nuts server).

However, we want the Nuts server to recognize that the client made the request over HTTPS. NGINX and other reverse proxies solve this by setting the "X-Forwarded-Proto" header to "https", which Express can access. Express has a setting called "trust proxy" that tells it to use the "X-Forwarded-*" headers as truth when receiving a connection from certain IP addresses (this is configurable; see http://expressjs.com/en/guide/behind-proxies.html).

So by exposing the "trust proxy" setting via an env var (`TRUST_PROXY`), people can run Nuts servers behind NGINX and Nuts will produce HTTPS URLs instead of HTTP ones.
2016-03-19 12:15:15 -07:00
Samy Pessé 447b700315 Add gitbook documentation 2016-03-17 11:30:06 +01:00
Aaron O'Mullan 25168d4fa9 Add docker instructions to docs/deploy.md 2016-03-14 16:48:02 +01:00
Samy Pessé 39919c18f4 Add documentation 2016-02-10 23:02:03 +01:00