mirror of
https://github.com/1f349/orchid.git
synced 2024-12-21 23:54:12 +00:00
Add logging for http acme initialisation
This commit is contained in:
parent
5322d4b096
commit
c0dce22bf8
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user