GitbookIO / nuts

:chestnut: Releases/downloads server with auto-updater and GitHub as a backend
http://nuts.gitbook.com
Apache License 2.0
1.25k stars 299 forks source link

Allow TRUST_PROXY to pass JSON arguments to Express #60

Closed rbkreisberg closed 8 years ago

rbkreisberg commented 8 years ago

Parse the TRUST_PROXY value as JSON

rbkreisberg commented 8 years ago

This allows us to send in a boolean value to the parameter for infrastructure like Heorku where we can't know the subnet address ahead of time.

@SamyPesse Let me know if you need anything else.

SamyPesse commented 8 years ago

I'm not a big fan of JSON parsing the env, but I don't see another solution in that case except, so LGTM.

SamyPesse commented 8 years ago

Thanks 👍