need clarification about usage of docker and https #233

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

Originally created by @ghost on GitHub.

I try to start a docker with https enabled like :

docker run -v /opt/pn/transfer.sh:/uploads --publish 4242:8080 dutchcoders/transfer.sh:latest --provider local --basedir /uploads --tls-listener=443 --force-https --tls-cert-file=localhost.crt --tls-private-key=localhost.key
[transfer.sh]2019/12/17 00:48:36 Transfer.sh server started.
using temp folder: /tmp/
using storage provider: local
[transfer.sh]2019/12/17 00:48:36 listening on port: :8080
[transfer.sh]2019/12/17 00:48:36 listening on port: 443
[transfer.sh]2019/12/17 00:48:36 ---------------------------
panic: listen tcp: address 443: missing port in address

what's wrong in command line ?

Regards,

Originally created by @ghost on GitHub. I try to start a docker with https enabled like : ``` docker run -v /opt/pn/transfer.sh:/uploads --publish 4242:8080 dutchcoders/transfer.sh:latest --provider local --basedir /uploads --tls-listener=443 --force-https --tls-cert-file=localhost.crt --tls-private-key=localhost.key [transfer.sh]2019/12/17 00:48:36 Transfer.sh server started. using temp folder: /tmp/ using storage provider: local [transfer.sh]2019/12/17 00:48:36 listening on port: :8080 [transfer.sh]2019/12/17 00:48:36 listening on port: 443 [transfer.sh]2019/12/17 00:48:36 --------------------------- panic: listen tcp: address 443: missing port in address ``` what's wrong in command line ? Regards,
Author
Owner

@paolafrancesca commented on GitHub:

@pfxpn listener param is ADDRESS:PORT, where address can be empty to listen on every interface
so it should be --tls-listener=:443

@paolafrancesca commented on GitHub: @pfxpn listener param is `ADDRESS:PORT`, where address can be empty to listen on every interface so it should be `--tls-listener=:443`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#233