Provide X-FORWARDED-PORT

raphaelflash
HOBBY

2 months ago

Frameworks often require to configure a trusted proxy when the application runs behind a load balancer. In my case it is Laravel. I spent quite some time to figure out what the issue with my signed URLs is and to fix it for Railway.

If the header X-FORWARDED-PORT was automatically set by Railway, similar to X-FORWARDED-PROTO and X-FORWARDED-HOST, it would simply work out of the box. As it is not, you need to put some custom hard-coded workarounds into the codebase.

I think this would be a simple fix to improve developer experience

Under Review

0 Threads mention this feature

0 Replies