mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 06:03:25 +00:00
How to self host the server behind proxy #127
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hkpanchani on GitHub.
How to build a production binary and make a linux service and host it behind proxy with SSL termination
@hkpanchani commented on GitHub:
Yes perfectly fine. Good to close this one ouy.
@paolafrancesca commented on GitHub:
@hkpanchani
you don't need to build the binary btw, you can use the one available on release page: https://github.com/dutchcoders/transfer.sh/releases
(look under
Assets)Setting the proxy depends on what you use as proxy, here's a sample conf for nginx:
You have to change the paths and
domain.tldand eventually the port of the upstream inproxy_passclient_max_body_sizeshould be set to the same value ofmax-upload-sizeon transfer.sh@stefanbenten commented on GitHub:
@hkpanchani Is there anything left to do on this issue? Are we good to close this?
@stefanbenten commented on GitHub:
Hello @hkpanchani ,
to build a production binary the easiest i found is
In order to run it behind a proxy/loadbalancer, you can run it with
--listener 127.0.0.1:8080and then hook your proxy up to this URL. This should be pretty much it.@stefanbenten commented on GitHub:
Technically you are still missing the ldflags as done here, but it should not matter for operation:
cff0a88bf3/.github/workflows/release.yml (L118)