Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Commit

Permalink
Write basic readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kamcma committed Aug 25, 2017
1 parent 2462121 commit a1e5470
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
# X-Forwarded-Proto SSL middleware for Vapor
# X-Forwarded-Proto SSL Middleware for Vapor

A Vapor middleware to redirect reverse proxy requests originating as http to https.

# Usage

To use Vapor X-Forwarded-Proto Middleware, add the middleware to your `Config` and your `droplet.json`:

```swift
let config = Config()
let xfpMiddleware = XFPMiddleware()
config.addConfigurable(middleware: xfpMiddleware, name: "xfp-middleware")
let drop = try Droplet(config)
```

0 comments on commit a1e5470

Please sign in to comment.