• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

inveniosoftware / invenio-base / 543
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: isort-fix
DEFAULT BRANCH: master
Ran 23 Aug 2019 08:56AM UTC
Jobs 2
Files 7
Run time 31s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
543

Pull #145

travis-ci

web-flow
wsgi: make proxy fix fully configurable

* The general problem solved here: whenever we need to take into
  any of the following headers set by a proxy: `X-Forwarded-For`,
  `X-Forwarded-Proto`, `X-Forwarded-Host`, `X-Forwarded-Port`,
  or `X-Forwarded-Prefix` we can fine tune it with the new
  configuration variable (see docstring for more info).

* The concrete problem solved here: when Invenio is running
  behind a proxy which does SSL termination, the
  `X-Forwarded-Proto` header is ignored causing the Flask
  application to generate URLs with the wrong HTTP scheme.
  With this change the `x_proto` parameter can be configured
  so the header is taken into account and `url_for` generates
  the correct URLs.

  Before, having one proxy in front of the app that would send
  `X-Forwarded-Proto: https`, would make the Flask app generate
  http://hostname/some/view when calling `url_for(some.view)`,
  now setting the config `BASE_PROXYFIX_CONFIG = {x_proto: 1}`
  would correctly generate https://hostname/some/view when calling
  `url_for`.
Pull Request #145: wsgi: make proxy fix fully configurable

6 of 6 new or added lines in 1 file covered. (100.0%)

185 of 192 relevant lines covered (96.35%)

1.93 hits per line

Jobs
ID Job ID Ran Files Coverage
4 543.4 (REQUIREMENTS=release DEPLOY=true) 23 Aug 2019 08:56AM UTC 0
96.35
Travis Job 543.4
6 543.6 (REQUIREMENTS=devel) 23 Aug 2019 08:57AM UTC 0
96.35
Travis Job 543.6
Source Files on build 543
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #543
  • Pull Request #145
  • PR Base - master (#541)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc