| @@ -38,9 +38,9 @@ function leAgree (opts, agreeCb) { | |||||
| const greenlock = Greenlock.create({ | const greenlock = Greenlock.create({ | ||||
| version: 'draft-12', | version: 'draft-12', | ||||
| // 测试环境 | // 测试环境 | ||||
| server: 'https://acme-staging-v02.api.letsencrypt.org/directory', | |||||
| // server: 'https://acme-staging-v02.api.letsencrypt.org/directory', | |||||
| // 生产环境 | // 生产环境 | ||||
| // server: 'https://acme-v02.api.letsencrypt.org/directory', | |||||
| server: 'https://acme-v02.api.letsencrypt.org/directory', | |||||
| store: leStore, | store: leStore, | ||||
| challenges: { | challenges: { | ||||
| 'http-01': leHttpChallenge, | 'http-01': leHttpChallenge, | ||||
| @@ -167,7 +167,7 @@ export default class extends Base { | |||||
| const daysLeft = await getRemainingDays(domain); | const daysLeft = await getRemainingDays(domain); | ||||
| const msg = `证书${domain},剩余${daysLeft}天`; | const msg = `证书${domain},剩余${daysLeft}天`; | ||||
| console.log(msg); | console.log(msg); | ||||
| if (daysLeft < 90) { | |||||
| if (daysLeft < 10) { | |||||
| updateList.push(domain); | updateList.push(domain); | ||||
| } | } | ||||
| } catch (e) { | } catch (e) { | ||||