From 92e85513f65b640f561aa9cd7392a7bd82684433 Mon Sep 17 00:00:00 2001 From: Daniel Szpisjak Date: Mon, 12 Sep 2016 10:36:04 +0200 Subject: [PATCH] fix(readme): add reverse proxy example --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 42e682d..4b379df 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,8 @@ This middleware is a wrapper for [koa-pug](https://github.com/chrisyip/koa-pug). app.addEnforceSSLMiddleware(); ``` -If your application is running behind reverse proxy you should set the trustProxy configiration option for detecting the x-forwarded-proto header. +If your application is running behind reverse proxy (like Heroku) you should set the trustProxy configuration option to *true* in order to process the x-forwarded-proto header. + ``` javascript var app = new App(koaApp); app.addEnforceSSLMiddleware({ trustProxy: true });