은승우

Update app.js

Showing 1 changed file with 1 additions and 1 deletions
1 var express = require('express'); 1 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 -var greenlock=require('greenlock=express'); 4 +var greenlock=require('greenlock-express');
5 var server = greenlock.create({ version: 'v02', configDir: '/etc/letsencrypt', server: 'https://acme-v02.api.letsencrypt.org/directory', email: 'sweun1@naver.com', 5 var server = greenlock.create({ version: 'v02', configDir: '/etc/letsencrypt', server: 'https://acme-v02.api.letsencrypt.org/directory', email: 'sweun1@naver.com',
6 approveDomains: ['www.oss.chatbot.bu.to', 'oss.chatbot.bu.to'], //my url, domain 6 approveDomains: ['www.oss.chatbot.bu.to', 'oss.chatbot.bu.to'], //my url, domain
7 agreeTos: true, renewWithin: 90 * 24 * 60 * 60 * 1000, renewBy: 89 * 24 * 60 * 60 * 1000, app: app }).listen(80, 443); 7 agreeTos: true, renewWithin: 90 * 24 * 60 * 60 * 1000, renewBy: 89 * 24 * 60 * 60 * 1000, app: app }).listen(80, 443);
......