Added static "blog" pages

Fixed some minor bugs
Added cors
This commit is contained in:
Caleb Gardner
2024-08-06 22:10:25 -05:00
parent 65a1834e9d
commit bb44e26dd4
3 changed files with 10 additions and 3 deletions
+2 -1
View File
@@ -57,7 +57,7 @@ func main() {
}
func setupMongo(uri string) {
mongoCert, err := tls.LoadX509KeyPair(filepath.Join(flag.Arg(0), "mongo.pem"), filepath.Join(flag.Arg(0)+"key.pem"))
mongoCert, err := tls.LoadX509KeyPair(filepath.Join(flag.Arg(0), "mongo.pem"), filepath.Join(flag.Arg(0), "key.pem"))
if err != nil {
log.Fatal("error loading mongo keys:", err)
}
@@ -80,6 +80,7 @@ func setupBackend(mux *http.ServeMux) {
swApp,
cdrApp,
)
back.AddCorsAddress("darkstorm.tech")
if err != nil {
log.Fatal("error setting up backend:", err)
}