mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-06 07:22:17 +00:00
How to change the protocol in "Sample use cases" #75
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 @i207M on GitHub.
Hi, thanks for the great app.
I deployed it on my server behind Nginx, but I found that the default protocol in "Sample use cases" is
http. How can I change it tohttps?BTW, I don't want the app handling HTTPS certs, so Nginx is a must.
Thanks in advance.
@i207M commented on GitHub:
Thanks for your help.
After some digging, the underlying issue is, user --https--> nginx --http--> transfer.sh, so the backend receives request in http protocol. And the way to indicate it to use https is to add this line to nginx config:
Now the scheme of the web address is https.
@paolafrancesca commented on GitHub:
@i207M what do you mean exaclty with "how can I change it to http"? do you mean on the frontend?
the address is built with https://github.com/dutchcoders/transfer.sh/blob/main/server/handlers.go#L740 and used in the frontend https://github.com/dutchcoders/transfer.sh-web/blob/master/src/index.html#L46
if you make a plain
httprequest, it will showhttp, if you make anhttpsone it will showhttpsyou can use nginx and letsencrypt to have nginx managing
httpsand proxy to the app in plainhttpsee a sample config here: https://github.com/dutchcoders/transfer.sh/issues/458#issuecomment-1008632316