Skip to content

Commit

Permalink
Add mentioning for --publish 127.0.0.1:8182:8182 and it's use case
Browse files Browse the repository at this point in the history
  • Loading branch information
nirui committed Dec 19, 2023
1 parent fdcf6ed commit bb0505d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -33,6 +33,14 @@ $ docker run --detach \
niruix/sshwifty:latest
```

This will open port `8182` on the Docker host to accept traffic from all remote
clients, and serve these clients with Sshwifty instance running inside the
container.

Operator can also use `--publish 127.0.0.1:8182:8182` to open Sshwifty to only
local clients, which is useful if the Sshwifty instance is intended to run
behind a reverse-proxy hosted on the same host.

When TLS is desired and you don't want to setup Docker Volumes, you can use
`SSHWIFTY_DOCKER_TLSCERT` and `SSHWIFTY_DOCKER_TLSCERTKEY` environment variables
to import credential files to the container and automatically apply them:
Expand Down

0 comments on commit bb0505d

Please sign in to comment.