update: add dockerfile

This commit is contained in:
2025-05-14 11:49:53 +07:00
parent 0117931817
commit 7717a3b866
4 changed files with 27 additions and 7 deletions
+2 -1
View File
@@ -10,10 +10,11 @@ import (
"strings"
"time"
"tunnel_pls/session"
"tunnel_pls/utils"
)
func NewHTTPSServer() error {
cert, err := tls.LoadX509KeyPair("certs/localhost.direct.SS.crt", "certs/localhost.direct.SS.key")
cert, err := tls.LoadX509KeyPair(utils.Getenv("cert_loc"), utils.Getenv("key_loc"))
if err != nil {
return err
}
+2 -4
View File
@@ -25,11 +25,9 @@ func NewServer(config ssh.ServerConfig) *Server {
go func() {
err := NewHTTPSServer()
if err != nil {
if err != nil {
log.Fatalf("failed to start https server: %v", err)
}
return
log.Fatalf("failed to start https server: %v", err)
}
return
}()
}
go func() {