Showing
1 changed file
with
2 additions
and
4 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 createServer = require("auto-sni"); |
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 | ||
7 | -agreeTos: true, renewWithin: 90 * 24 * 60 * 60 * 1000, renewBy: 89 * 24 * 60 * 60 * 1000, app: app }).listen(80, 443); | ||
8 | 5 | ||
9 | 6 | ||
7 | +createServer({ email: "sweun1@naver.com", domains: ["www.oss.chatbot.bu.to","oss.chatbot.bu.to"], agreeTos: true }, app); | ||
10 | //papago api | 8 | //papago api |
11 | var request = require('request'); | 9 | var request = require('request'); |
12 | 10 | ... | ... |
-
Please register or login to post a comment