|
|
@ -15,6 +15,7 @@ func main() {
|
|
|
|
webAddress := flag.String("web_address", ":80", "The bind address for the web interface")
|
|
|
|
webAddress := flag.String("web_address", ":80", "The bind address for the web interface")
|
|
|
|
senderAddress := flag.String("sender_address", ":6543", "The bind address for the tty_sender connections")
|
|
|
|
senderAddress := flag.String("sender_address", ":6543", "The bind address for the tty_sender connections")
|
|
|
|
url := flag.String("url", "http://localhost", "The public web URL the server will be accessible at")
|
|
|
|
url := flag.String("url", "http://localhost", "The public web URL the server will be accessible at")
|
|
|
|
|
|
|
|
frontendPath := flag.String("frontend_path", "frontend", "The path to the frontend resources")
|
|
|
|
flag.Parse()
|
|
|
|
flag.Parse()
|
|
|
|
|
|
|
|
|
|
|
|
log := MainLogger
|
|
|
|
log := MainLogger
|
|
|
@ -24,6 +25,7 @@ func main() {
|
|
|
|
WebAddress: *webAddress,
|
|
|
|
WebAddress: *webAddress,
|
|
|
|
TTYSenderAddress: *senderAddress,
|
|
|
|
TTYSenderAddress: *senderAddress,
|
|
|
|
ServerURL: *url,
|
|
|
|
ServerURL: *url,
|
|
|
|
|
|
|
|
FrontendPath: *frontendPath,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
server := NewTTYProxyServer(config)
|
|
|
|
server := NewTTYProxyServer(config)
|
|
|
|