https://github.com/tomtaylor/plug_forwarded_port
Plug for handling the X-Forwarded-Port header
https://github.com/tomtaylor/plug_forwarded_port
elixir http phoenix plug
Last synced: 9 months ago
JSON representation
Plug for handling the X-Forwarded-Port header
- Host: GitHub
- URL: https://github.com/tomtaylor/plug_forwarded_port
- Owner: tomtaylor
- Created: 2019-12-11T10:09:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-11T10:17:00.000Z (over 6 years ago)
- Last Synced: 2025-04-04T13:16:00.734Z (about 1 year ago)
- Topics: elixir, http, phoenix, plug
- Language: Elixir
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PlugForwardedPort
Plug for parsing the `X-Forwarded-Port` header and setting the `Plug.Conn` port from it.
I use this on Heroku to set the port correctly, so `Plug.Conn.request_url/1` generates the URL correctly.
## Installation
```elixir
def deps do
[
{:plug_forwarded_port, "~> 0.1.0"},
]
end
```