Commit Graph

3 Commits

Author SHA1 Message Date
Florian Wilkens
ed97a4759d
[docker-entry-point.sh] Allow docker host per default 2018-08-29 16:50:49 +02:00
Florian Wilkens
49867e15ff
[docker-entrypoint.sh] Optionally handle X-Forwarded-Proto
In the default configuration gunicorn respects the X-Forwarded-Proto HTTP header only if the connection comes from localhost.
This is not the case when e.g. running under docker where gunicorn sees the docker gateway IP causing it to disregard the header and potentially produce an error regarding the mismatch of public_url and application url.
The commandline argument --forwarded-allow-ips tells gunicorn to trust the headers if the connection originates from certain other IP addresses.
To expose this setting for docker setups of syncserver, the docker entrypoint is changed to optionally set this argument based on the environment variable SYNCSERVER_FORWARDED_ALLOW_IPS defaulting to 127.0.0.1 which mirrors the gunicorn default.
2018-08-23 11:55:12 +02:00
Ryan Kelly
e3885888ff
Migrate to CircleCI 2 (#129); r=jrgm 2018-07-22 21:55:11 -07:00