Skip to content

Commit

Permalink
fix: correct ssl offloading proxy documentation url in console warning
Browse files Browse the repository at this point in the history
  • Loading branch information
big kahuna burger authored and panva committed Aug 26, 2019
1 parent f4ef989 commit b871e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/helpers/initialize_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ module.exports = function initializeApp() {
if (proxyWarning.pass) return next();

if (issuer.startsWith('https:') && !ctx.secure && ctx.get('x-forwarded-proto') === 'https') {
attention.warn(`x-forwarded-proto header detected but not trusted, you must set proxy=true on the provider, see documentation for more details (${homepage}/tree/${version}/docs/README.md#trusting-tls-offloading-proxies)`);
attention.warn(`x-forwarded-proto header detected but not trusted, you must set proxy=true on the provider, see documentation for more details: ${homepage}/tree/v${version}/docs/README.md#trusting-tls-offloading-proxies`);
proxyWarning.pass = true;
} else if (issuer.startsWith('https:') && !ctx.secure && !ctx.get('x-forwarded-proto')) {
attention.warn(`x-forwarded-proto header not detected for an https issuer, you must configure your ssl offloading proxy and the provider, see documentation for more details (${homepage}/tree/${version}/docs/README.md#trusting-tls-offloading-proxies)`);
attention.warn(`x-forwarded-proto header not detected for an https issuer, you must configure your ssl offloading proxy and the provider, see documentation for more details: ${homepage}/tree/v${version}/docs/README.md#trusting-tls-offloading-proxies`);
proxyWarning.pass = true;
}

Expand Down

0 comments on commit b871e99

Please sign in to comment.