If you’re using Galene, you might be interested in galene-file-transfer, a command-line client for file transfer through Galene. I’ve put some binaries in my download directory.
In short, this replicates Galene’s file transfer functionality (click on a user, then choose “send file”) in a command-line client. This is useful in order to transfer large files (more than a couple GB) or where a web browser is not available.
The transfer is peer-to-peer and encrypted end-to-end (the server is only used for NAT traversal and exchanging cryptographic keys), but the server may trivially mount an MiTM attack; therefore, you should preferably use a server that you host yourself.
Explanation: you’re running Galene behind a reverse proxy that terminates TLS. Galene is not aware that its actually being accessed over TLS, so it announces the WebSocket endpoint as not using TLS. The command-line client (correctly) attempts to connect using an insecure connection, which of course fails. I have no idea why the browser succeeds, probably magic. (Browsers do a lot of magic.)