Move HTTPS-related flags in rogueserver.go

pull/11/head
maru 8 months ago
parent 693663103b
commit d4a906a0f1
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

@ -35,6 +35,8 @@ func main() {
proto := flag.String("proto", "tcp", "protocol for api to use (tcp, unix)") proto := flag.String("proto", "tcp", "protocol for api to use (tcp, unix)")
addr := flag.String("addr", "0.0.0.0:8001", "network address for api to listen on") addr := flag.String("addr", "0.0.0.0:8001", "network address for api to listen on")
tlscert := flag.String("tlscert", "", "tls certificate path")
tlskey := flag.String("tlskey", "", "tls key path")
dbuser := flag.String("dbuser", "pokerogue", "database username") dbuser := flag.String("dbuser", "pokerogue", "database username")
dbpass := flag.String("dbpass", "pokerogue", "database password") dbpass := flag.String("dbpass", "pokerogue", "database password")
@ -42,9 +44,6 @@ func main() {
dbaddr := flag.String("dbaddr", "localhost", "database address") dbaddr := flag.String("dbaddr", "localhost", "database address")
dbname := flag.String("dbname", "pokeroguedb", "database name") dbname := flag.String("dbname", "pokeroguedb", "database name")
tlscert := flag.String("tlscert", "", "tls certificate path")
tlskey := flag.String("tlskey", "", "tls key path")
flag.Parse() flag.Parse()
// register gob types // register gob types

Loading…
Cancel
Save