Skip to content

Commit 3f9c26e

Browse files
committed
docs: clarify ability to use w/out a proxy
1 parent 3a1194d commit 3f9c26e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
hapi-require-https [![Build Status](https://travis-ci.org/bendrucker/hapi-require-https.svg?branch=master)](https://travis-ci.org/bendrucker/hapi-require-https)
22
==================
33

4-
> hapi plugin that adds http to https redirection for servers behind a reverse proxy
4+
> hapi plugin that adds http to https redirection
55
6-
Any incoming request with `'http'` in `X-Forwarded-Proto` will be redirected (301) to the same host and path with `'https'` as the protocol.
6+
By default, any incoming request with `'http'` in `X-Forwarded-Proto` will be redirected (301) to the same host and path with `'https'` as the protocol. You can optionally disable proxy mode and redirect based on the actual request protocol.
77

88
## Usage
99

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hapi-require-https",
33
"version": "2.0.6",
4-
"description": "hapi http -> https redirection for servers behind a reverse proxy",
4+
"description": "hapi http -> https redirection",
55
"main": "index.js",
66
"scripts": {
77
"test": "standard && tape test.js"

0 commit comments

Comments
 (0)