은승우

qfq

Showing 1 changed file with 13 additions and 0 deletions
...@@ -2,6 +2,19 @@ var express = require('express'); ...@@ -2,6 +2,19 @@ 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");
6 +
7 +var server = createServer({
8 + email: sweun1@naver.com, // Emailed when certificates expire.
9 + agreeTos: true, // Required for letsencrypt.
10 + debug: false, // Add console messages and uses staging LetsEncrypt server. (Disable in production)
11 + domains: ["osschatbot.bu.to"], // List of accepted domain names. (You can use nested arrays to register bundles with LE).
12 + dir: "/etc/letsencrypt/live/osschatbot.bu.to", // Directory for storing certificates. Defaults to "~/letsencrypt/etc" if not present.
13 + ports: {
14 + http: 80, // Optionally override the default http port.
15 + https: 443 // // Optionally override the default https port.
16 + }
17 +});
5 18
6 //papago api 19 //papago api
7 var request = require('request'); 20 var request = require('request');
......