Iron middleware to handle being behind a reverse proxy
This repository has been archived on 2024-03-22. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Asherah Connor b2d5699511
let's include these lines
2018-01-13 15:08:25 +11:00
src let's include these lines 2018-01-13 15:08:25 +11:00
.gitignore initial commit 2018-01-13 14:50:06 +11:00
.travis.yml travis 2018-01-13 14:52:06 +11:00
Cargo.toml 0.1.1 2018-01-13 15:04:48 +11:00
LICENSE ironish 2018-01-13 14:53:17 +11:00
README.md crates.io version in README 2018-01-13 15:06:50 +11:00

iron_reverse_proxy crates.io version Build Status

Some simple BeforeMiddleware to make using Iron behind a reverse proxy easier.

Usage:

extern crate iron_reverse_proxy;

use iron::prelude::*;

let mut ch = Chain::new(handler);
ch.link_before(iron_reverse_proxy::ReverseProxyMiddleware);

And you're done. Works particularly well with router's url_for! macro, as it depends on the Request.url property, which this middleware modifies.

License

Licensed under the MIT, see LICENSE.