This is the main dovel repository, it has the Go code to run dovel SMTP server.
Author: bryon (git@mail.blmayer.dev)
Date: Sat Jul 22 21:10:58 2023 -0300
Parent: bf0d46f
Added web to config
commit 6ca528acb9814e82f8abe60015d9ade2b5c4ce6f
Author: bryon <git@mail.blmayer.dev>
Date: Sat Jul 22 21:10:58 2023 -0300
Added web to config
diff --git a/model/main.go b/model/main.go
index ae187c5..b27ff34 100644
--- a/model/main.go
+++ b/model/main.go
@@ -24,6 +24,7 @@ import (
// the HTTP web server is started.
type Config struct {
Server ServerConfig
+ Web WebConfig
WebPort *string
}
@@ -41,6 +42,15 @@ type ServerConfig struct {
Inboxes []InboxConfig
}
+// WebConfig is used to configure your static server.
+// Port is used to specify which address the server should listen
+// to connections, a typical value is :8080.
+// Lastly, Root specifies where your html files are.
+type WebConfig struct {
+ Port string
+ Root string
+}
+
type InboxConfig struct {
Handler string
HTMLConfig