은승우

111

Showing 1 changed file with 11 additions and 12 deletions
...@@ -2,18 +2,17 @@ var express = require('express'); ...@@ -2,18 +2,17 @@ var express = require('express');
2 var app = express(); 2 var app = express();
3 const line = require('@line/bot-sdk'); 3 const line = require('@line/bot-sdk');
4 4
5 -var createServer = require("auto-sni"); 5 +import greenlock from 'green-express';
6 - 6 +const lex=greenlock.create({
7 -var server = createServer({ 7 + version: 'v02',
8 - email: "sweun1@naver.com", // Emailed when certificates expire. 8 + configDir: '/etc/letsencrypt',
9 - agreeTos: true, // Required for letsencrypt. 9 + server:'https://acme-v02.api.letsencrypt.org/directory',
10 - debug: false, // Add console messages and uses staging LetsEncrypt server. (Disable in production) 10 + email:'sweun1@naver.com',
11 - domains: ["osschatbot.bu.to"], // List of accepted domain names. (You can use nested arrays to register bundles with LE). 11 + approveDomains:['www.osschatbot.bu.to','osschatbot.bu.to'],
12 - dir: "/etc/letsencrypt/live/osschatbot.bu.to", // Directory for storing certificates. Defaults to "~/letsencrypt/etc" if not present. 12 + agreeTos:true,
13 - ports: { 13 + renewWithin:90*24*60*60*1000,
14 - http: 80, // Optionally override the default http port. 14 + renewBy:89*24*60*60*1000
15 - https: 443 // // Optionally override the default https port. 15 +
16 - }
17 }); 16 });
18 17
19 //papago api 18 //papago api
......