Usage with proxy #336

Closed
opened 2026-01-19 18:29:55 +00:00 by michael · 1 comment
Owner

Originally created by @Repulser on GitHub.

I tried to host this and use nginx for proxying multiple domains, issue i got is that it always returned local host urls like http://127.0.0.1:7000/yLCBL/col.png since thats where it requests it, is there any way to change the host it uses or configure nginx differently?

Originally created by @Repulser on GitHub. I tried to host this and use nginx for proxying multiple domains, issue i got is that it always returned local host urls like `http://127.0.0.1:7000/yLCBL/col.png` since thats where it requests it, is there any way to change the host it uses or configure nginx differently?
Author
Owner

@Repulser commented on GitHub:

It seems that modifying the Host header like so solved this problem:

location / {
   proxy_pass http://127.0.0.1:7000;
   proxy_set_header Host domain.com;
}
@Repulser commented on GitHub: It seems that modifying the `Host` header like so solved this problem: ``` location / { proxy_pass http://127.0.0.1:7000; proxy_set_header Host domain.com; }
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#336