Commit Graph

4 Commits (master)

Author SHA1 Message Date
John Morrison a9a8d66bcd [docker-entry-point.sh] add missing backslash line continuation (#133) 6 years ago
Florian Wilkens ed97a4759d
[docker-entry-point.sh] Allow docker host per default 6 years ago
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.
6 years ago
Ryan Kelly e3885888ff
Migrate to CircleCI 2 (#129); r=jrgm 6 years ago