-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
49 lines (37 loc) · 1.01 KB
/
main.go
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package main
import (
"github.com/Celtech/ACME/cmd"
"github.com/Celtech/ACME/config"
"os"
log "github.com/sirupsen/logrus"
)
func init() {
var appEnv string
if appEnv = os.Getenv("ACME_ENV"); appEnv == "" {
appEnv = "development"
}
conf := config.Init(appEnv)
log.SetFormatter(&log.TextFormatter{
DisableColors: !conf.GetBool("services.logger.color"),
FullTimestamp: true,
ForceColors: conf.GetBool("services.logger.color"),
})
}
// @title ACME API
// @version 1.0
// @description Issue dynamic SSL certificates for 1+n domains.
// @description.markdown
// @license.name MIT
// @license.url https://git.rykelabs.com/rykelabs/acme-server/-/blob/main/LICENSE.md
// @host acme.chargeover.com:9022
// @BasePath /api/v1
// @accept json
// @produce json
// @schemes https
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name Authorization
// @description JWT Authorization Token
func main() {
cmd.Execute()
}