Add example usage of the openssl command as well because I keep forgetting it
This commit is contained in:
11
README.md
11
README.md
@@ -38,18 +38,19 @@ volumes, you can use `SSHWIFTY_DOCKER_TLSCERT` and `SSHWIFTY_DOCKER_TLSCERTKEY`
|
|||||||
environment variables when starting the container:
|
environment variables when starting the container:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
$ openssl req \
|
||||||
|
-newkey rsa:4096 -nodes -keyout domain.key -x509 -days 90 -out domain.crt
|
||||||
$ docker run --detach \
|
$ docker run --detach \
|
||||||
--restart=always \
|
--restart=always \
|
||||||
--publish 8182:8182 \
|
--publish 8182:8182 \
|
||||||
--env SSHWIFTY_DOCKER_TLSCERT="$(cat /path/to/domain.crt)" \
|
--env SSHWIFTY_DOCKER_TLSCERT="$(cat domain.crt)" \
|
||||||
--env SSHWIFTY_DOCKER_TLSCERTKEY="$(cat /path/to/domain.key" \
|
--env SSHWIFTY_DOCKER_TLSCERTKEY="$(cat domain.key)" \
|
||||||
--name sshwifty \
|
--name sshwifty \
|
||||||
niruix/sshwifty:latest
|
niruix/sshwifty:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
`/path/to/domain.crt` and `/path/to/domain.key` must point to valid TLS
|
The `domain.crt` and `domain.key` must be valid TLS certificate and key file
|
||||||
certificate and key file located on the machine which the `docker run` command
|
located on the machine which the `docker run` command will be executed.
|
||||||
is executed.
|
|
||||||
|
|
||||||
[Docker]: https://www.docker.com
|
[Docker]: https://www.docker.com
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user