_ Go _
#
./go-public init server
#
cat go-public-server.yaml
#
./go-public
Docker
docker run -d --restart always --name go-public -p 6871:6871 -p 8080:8080 -v /home/ubuntu/data/go-public:/app justsong/go-public
IP
# go-public-server.yaml
whitelist:
- 123.213.241.5
- 123.213.242.9
- 125.216.243.1
#
./go-public init client
#
vim go-public-client.yaml
#
#
#
./go-public <> <>
#
./go-public 3000 8080 # 3000 8080
sequenceDiagram
participant Local Server
participant Go Public Client
participant Go Public Server
participant User
Go Public Client->>Go Public Server: Initialize connection
User->>Go Public Server: Request
Go Public Server->>Go Public Client: Assign connection uuid
Go Public Client->>Go Public Server: Make a new connection with uuid
Go Public Client->>Local Server: Make a new connection
Go Public Server->>Go Public Client: Forward request
Go Public Client->>Local Server: Forward request
Local Server->>Go Public Client: Response
Go Public Client->>Go Public Server: Forward response
Go Public Server->>User: Forward Response