Tunnel through WebSocket. https://hub.docker.com/r/nxhs/wstunnel
This repository has been archived on 2024-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2024-01-07 11:15:04 +03:00
Dockerfile upd wstunnel version 2024-01-07 11:15:04 +03:00
entrypoint.sh init 2023-07-01 20:55:17 +03:00
README.md init 2023-07-01 20:55:17 +03:00
wstunnel upd wstunnel version 2024-01-07 11:15:04 +03:00
wstunnel.conf init 2023-07-01 20:55:17 +03:00

wstunnel with Nginx

wstunnel with nginx as reverse proxy.

Run server:

docker run -d \
    --name wstunnel \
    -p 8080:80 \
    -e SERVER_PORT=8080 \
    -e WS_PATH_PREFIX=md77sthqtq-o_ptobrd65n0ol56fk5bz \
    nxhs/wstunnel

Connect:

wstunnel --upgradePathPrefix md77sthqtq-o_ptobrd65n0ol56fk5bz -D 1080 ws://localhost:8080

Environment:

Variable Default Description
SERVER_PORT Empty Port what you want to publish
SERVER_HOST localhost Your server IP or domain name
WS_PATH_PREFIX Random Path prefix for websocket. Used as shared secret

See docker logs wstunnel to view generated client connection command.