1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package main
import (
"flag"
"git.thomasvoss.com/euro-cash.eu/src"
"git.thomasvoss.com/euro-cash.eu/src/email"
)
// components = map[string]templ.Component{
// "/coins": template.Coins(),
// "/coins/designs": template.CoinsDesigns(),
// "/coins/designs/nl": template.CoinsDesignsNl(),
// "/coins/mintages": template.CoinsMintages(),
// "/jargon": template.Jargon(),
// }
func main() {
port := flag.Int("port", 8080, "port number")
flag.BoolVar(&email.Config.Disabled, "no-email", false,
"disables email support")
flag.StringVar(&email.Config.Host, "smtp-host", "smtp.migadu.com",
"SMTP server hostname")
flag.IntVar(&email.Config.Port, "smtp-port", 465,
"SMTP server port number")
flag.StringVar(&email.Config.ToAddr, "email-to", "bugs@euro-cash.eu",
"address to send error messages to")
flag.StringVar(&email.Config.FromAddr, "email-from", "noreply@euro-cash.eu",
"address to send error messages from")
flag.StringVar(&email.Config.Password, "email-password", "",
"password to authenticate the email client")
flag.Parse()
src.Run(*port)
}
|