Sign inSign up

nxhs/wstunnel

By nxhs

•Updated over 2 years ago

Haskell wstunnel with Nginx

Image
0

962

nxhs/wstunnel repository overview

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:

VariableDefaultDescription
SERVER_PORTEmptyPort what you want to publish
SERVER_HOSTlocalhostYour server IP or domain name
WS_PATH_PREFIXRandomPath prefix for websocket. Used as shared secret

See docker logs wstunnel to view generated client connection command.

Sources: https://git.nxhs.cloud/nixhacks/wstunnel⁠

Tag summary

Content type

Image

Digest

sha256:ea2d30685…

Size

69.5 MB

Last updated

over 2 years ago

docker pull nxhs/wstunnel