SimpleApp

Started work on the actual stuff
Gave up on Valkey (for right now)
This commit is contained in:
Caleb Gardner
2024-06-16 06:46:44 -05:00
parent 7f9de3f025
commit 7b15aab7ec
8 changed files with 77 additions and 27 deletions
+18
View File
@@ -1,4 +1,22 @@
package main
import (
"crypto/tls"
"flag"
"log"
)
func main() {
mongoURL := flag.String("mongo", "", "Enables MongoDB usage for darkstorm-backend.")
webRoot := flag.String("web-root", "", "Sets root directory of web server.")
flag.Parse()
if flag.NArg() != 1 {
log.Fatal("You must specify key directory. ex: darkstorm-server /etc/web-keys")
}
if *mongoURL != "" {
}
mongoCert, err := tls.LoadX509KeyPair(flag.Arg(0)+"mongo.pem", flag.Arg(0)+"key.pem")
if err != nil {
}
}