Add logging for http acme initialisation

This commit is contained in:
Melon 2023-07-11 13:06:32 +01:00
parent 5322d4b096
commit c0dce22bf8
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -83,9 +83,12 @@ func normalLoad(conf startUpConfig, wd string) {
wg := &sync.WaitGroup{} wg := &sync.WaitGroup{}
acmeProv, _ := httpAcme.NewHttpAcmeProvider(filepath.Join(wd, "tokens.json"), conf.Acme.PresentUrl, conf.Acme.CleanUpUrl, conf.Acme.RefreshUrl) acmeProv, _ := httpAcme.NewHttpAcmeProvider(filepath.Join(wd, "tokens.json"), conf.Acme.PresentUrl, conf.Acme.CleanUpUrl, conf.Acme.RefreshUrl)
if err != nil {
log.Fatal("[Orchid] HTTP Acme Error:", err)
}
renewalService, err := renewal.NewService(wg, db, acmeProv, conf.LE, certDir, keyDir) renewalService, err := renewal.NewService(wg, db, acmeProv, conf.LE, certDir, keyDir)
if err != nil { if err != nil {
log.Fatal("[Orchid] Error:", err) log.Fatal("[Orchid] Service Error:", err)
} }
srv := servers.NewApiServer(conf.Listen, db, mJwtVerify, conf.Domains) srv := servers.NewApiServer(conf.Listen, db, mJwtVerify, conf.Domains)
log.Printf("[API] Starting API server on: '%s'\n", srv.Addr) log.Printf("[API] Starting API server on: '%s'\n", srv.Addr)