Add X-Forward-* headers #55

Open
opened 2021-12-02 15:25:36 +00:00 by Ghost · 0 comments

Today I switch from using ngrok to telebit. I like telebit quite a lot better than ngrok.

I faced one issue which I spent 2 hours debugging. The issue was the the server thougth is was running on http so it would redirect to http://fluffy-sheep.telebit.io instead of https://fluffy-sheep.telebit.io. Ngrok set the X-Forwarded-Proto to https which did the trick for my stack. Now I solved it with a middleware in by ruby rack stack, but I which this could be solved by telebit instead.

I cloned the repo to search the code and found these commentes about headers. I did't research why they are commented out.
f0049c7f06/README.md (L434-L449)

Today I switch from using ngrok to telebit. I like telebit quite a lot better than ngrok. I faced one issue which I spent 2 hours debugging. The issue was the the server thougth is was running on http so it would redirect to http://fluffy-sheep.telebit.io instead of https://fluffy-sheep.telebit.io. Ngrok set the X-Forwarded-Proto to https which did the trick for my stack. Now I solved it with a middleware in by ruby rack stack, but I which this could be solved by telebit instead. I cloned the repo to search the code and found these commentes about headers. I did't research why they are commented out. https://git.coolaj86.com/coolaj86/telebit.js/blame/commit/f0049c7f06a03727ba9a0ca5aaf83a3fa5488a5d/README.md#L434-L449
Sign in to join this conversation.
No Label
feature
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coolaj86/telebit.js#55
No description provided.