Skip to content
Permalink
Browse files

Pass Host header to allow its use in --upstream

When using original configuration proposed here,  I couldn't figure out why why something like  `inlets client --remote wss://inlet.example.com --upstream="foo.example.com=http://127.0.0.1:8000" --token=my_token` wouldn't work. If I removed the host= and set `--upstream="http://127.0.0.1:8000"` everything was fine, and that is when I realized I needed to the send the host header along. Once this was added, the `--upstream="foo.example.com=http://127.0.0.1:8000"` would work.

Signed-off-by: Patrick Muldoon <doon@labratsoftware.com>
  • Loading branch information
doon authored and alexellis committed Jan 20, 2020
1 parent abbfd3f commit 266f719d0a05d31d54b3c39c846636808fad662f
Showing with 1 addition and 0 deletions.
  1. +1 −0 contrib/nginx.md
@@ -15,6 +15,7 @@ server {
proxy_http_version 1.1;
proxy_read_timeout 120s;
proxy_connect_timeout 120s;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}

0 comments on commit 266f719

Please sign in to comment.
You can’t perform that action at this time.