mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 14:13:26 +00:00
Docker https cannot open certificates #258
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 @MPolymath on GitHub.
Hello,
To launch docker and have it use https,
I am running the following command:
However when I access my local web server (https://localhost:443) I get the following logs:
I copied the certificates in the docker container using the following command.
I have also copied the certificates in the local machine in the /tmp/ directory.
This is how I created the certificates:
Am I doing anything wrong or is the https function broken ?
@dopessoa commented on GitHub:
Hello @MPolymath,
I guess the easiest way would be to mount your certificates directory inside the container, like this:
sudo docker run -v /home/mina/transfersh:/tmp/certs --publish 443:443 dutchcoders/transfer.sh:latest --provider local --basedir /tmp/ --tls-listener :443 --tls-cert-file /tmp/certs/localhost.crt --tls-private-key /tmp/certs/localhost.keyAs you're not publishing the HTTP port, both --listener and --force-https parameters shouldn't make a difference, so I removed them from the command line.
@MPolymath commented on GitHub:
Thank you that is exactly what I was looking for the issue is solved.