Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이종규
/
chatbot_project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
JKL
2021-12-08 13:11:36 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5de3876a76de099d15647084cd0dc5238e3d4ae3
5de3876a
1 parent
ba18a957
Update_Server
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
app.js
app.js
View file @
5de3876
const
express
=
require
(
'express'
);
const
express
=
require
(
'express'
);
const
fs
=
require
(
'fs'
);
const
path
=
require
(
'path'
);
const
HTTPS
=
require
(
'https'
);
...
...
@@ -6,6 +7,8 @@ const domain = "2020105107.osschatbot.cf"
const
sslport
=
23023
;
const
app
=
express
();
const
app
=
express
();
app
.
use
(
express
.
urlencoded
({
extended
:
false
}));
app
.
use
(
express
.
json
());
...
...
@@ -143,6 +146,7 @@ app.post('/message', (req, res) => {
res
.
json
(
data
);
});
try
{
const
option
=
{
ca
:
fs
.
readFileSync
(
'/etc/letsencrypt/live/'
+
domain
+
'/fullchain.pem'
),
...
...
@@ -157,3 +161,4 @@ try {
console
.
log
(
'[HTTPS] HTTPS 오류가 발생하였습니다. HTTPS 서버는 실행되지 않습니다.'
);
console
.
log
(
error
);
}
...
...
Please
register
or
login
to post a comment