mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
enhance: save certificate before renew #723
This commit is contained in:
parent
e6998feca4
commit
f4c17f0c65
9 changed files with 23 additions and 18 deletions
|
@ -98,12 +98,9 @@ func IssueCert(c *gin.Context) {
|
|||
|
||||
// block, until errChan closes
|
||||
for err = range errChan {
|
||||
|
||||
log.Error(err)
|
||||
|
||||
// Save logs to db
|
||||
log.Exit()
|
||||
|
||||
err = ws.WriteJSON(IssueCertResponse{
|
||||
Status: Error,
|
||||
Message: err.Error(),
|
||||
|
@ -112,7 +109,6 @@ func IssueCert(c *gin.Context) {
|
|||
logger.Error(err)
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue