forked from vxcontrol/rancher-letsencrypt
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.go
More file actions
32 lines (26 loc) · 598 Bytes
/
main.go
File metadata and controls
32 lines (26 loc) · 598 Bytes
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
package main
import (
"flag"
"os"
"github.com/Sirupsen/logrus"
)
var (
// Must be set at build
Version string
Git string
debug bool
testMode bool
)
func init() {
flag.BoolVar(&debug, "debug", false, "Enable debugging")
flag.BoolVar(&testMode, "test-mode", false, "Renew certificate every 120 seconds")
// logrus.SetFormatter(&logrus.TextFormatter{DisableTimestamp: true})
logrus.SetOutput(os.Stdout)
}
func main() {
flag.Parse()
logrus.Infof("Starting Let's Encrypt Certificate Manager %s %s", Version, Git)
context := &Context{}
context.InitContext()
context.Run()
}