2
0
mirror of https://github.com/elisescu/tty-server synced 2024-11-15 12:12:54 +00:00
Go to file
2020-09-25 05:23:23 +00:00
frontend Completely remove devDependencies 2020-09-25 05:23:23 +00:00
vendor Initial commit 2020-01-09 22:38:33 +01:00
.gitignore Initial commit 2020-01-09 22:38:33 +01:00
.travis.yml Initial commit 2020-01-09 22:38:33 +01:00
assets_bundle.go Revert "Regen assets_bundle.go" 2020-09-25 05:00:53 +00:00
Dockerfile Add Dockerfile 2020-04-22 16:51:33 +02:00
Gopkg.lock Initial commit 2020-01-09 22:38:33 +01:00
Gopkg.toml Initial commit 2020-01-09 22:38:33 +01:00
LICENSE Initial commit 2020-01-09 22:38:33 +01:00
Makefile Initial commit 2020-01-09 22:38:33 +01:00
protocol.go Initial commit 2020-01-09 22:38:33 +01:00
README.md Add Dockerfile 2020-04-22 16:51:33 +02:00
server_main.go Initial commit 2020-01-09 22:38:33 +01:00
server.go Initial commit 2020-01-09 22:38:33 +01:00
session.go Initial commit 2020-01-09 22:38:33 +01:00
tty_protocol_conn.go Initial commit 2020-01-09 22:38:33 +01:00
websockets_connection.go Initial commit 2020-01-09 22:38:33 +01:00

Build Status

tty-server

Server side for tty-share.

Docker

The server can be built into a docker image as follows:

docker build -t tty-server .

To run the container, type:

docker run \
  -p 6543:6543 -p 5000:5000 \
  -e URL=http://localhost:5000 \
  --cap-drop=all --rm \
  tty-server

where you can replace URL by whatever will be the publicly visible URL of the server.

After this, clients can be connected as follows:

tty-share -useTLS=false -server localhost:6543

In the above command, 6543 is the default port where tty-server listens for incoming shares (i.e. tty-share clients), and 5000 is the port of the web interface through which remote users can connect. You can override the defaults by specifying a different port mapping on the command line, e.g. -p 7654:6543 -p 80:5000 to listen on 7654 and serve on 80.