add new argument for remote port

This commit is contained in:
Adrian Zuercher
2025-07-11 17:46:32 +02:00
parent e75d7c8b03
commit be07dc8749
3 changed files with 8 additions and 5 deletions

View File

@@ -43,6 +43,7 @@ func Init() *Args {
keyFile := flag.String("keyFile", "./cert/key.pem", "path of keyfile")
portHttp := flag.Uint("http-port", 8100, "json server communication for http/ws")
portHttps := flag.Uint("https-port", 8101, "json server communication for http/wss")
remotePort := flag.Uint("remotePort", 9500, "remote Port of gui user interface")
rootDir := flag.String("workingDir", "./", "working directory")
dbmFile := flag.String("dbm", "/test/test", "dbm file name")
debug := flag.Bool("debug", false, "debug flag")
@@ -56,8 +57,9 @@ func Init() *Args {
KeyFile: *keyFile,
},
Port: models.Port{
Http: *portHttp,
Https: *portHttps,
Http: *portHttp,
Https: *portHttps,
Remote: *remotePort,
},
RootDir: *rootDir,
DBMFile: *dbmFile,