Config changes for running behind a proxy #32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First off this is a great project. At one point I was wrestling with bitly's oauth proxy, which was design with a more 1:1 proxy:service use case in mind. I really appreciate the simple config file and from/to frontend/backend routing.
These modifications were needed to easily run this behind an AWS load balancer (doing SSL termination). These changes should in theory allow it to run behind any proxy.
Also, needed to support some of the config moving to ENV vars.
Changes:
use-https : true/false
config field to force https scheme. Allows SSL termination to happen on a proxy before underpants, but for underpants to still redirect to https urls.