Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김시환
/
emergency_room_ChatBot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김시환
2022-11-25 15:36:02 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
833509f57605752ee1ef870ee82986d081303312
833509f5
1 parent
b94e514f
update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
app.js
app.js
View file @
833509f
...
...
@@ -51,8 +51,9 @@ app.post('/hook', function (req, res) {
});
try
{
const
option
=
{
key
:
fs
.
readFileSync
(
'./rootca.key'
,
'utf8'
),
cert
:
fs
.
readFileSync
(
'./rootca.crt'
,
'utf8'
),
ca
:
fs
.
readFileSync
(
'/etc/letsencrypt/live/'
+
domain
+
'/fullchain.pem'
),
key
:
fs
.
readFileSync
(
path
.
resolve
(
process
.
cwd
(),
'/etc/letsencrypt/live/'
+
domain
+
'/privkey.pem'
),
'utf8'
).
toString
(),
cert
:
fs
.
readFileSync
(
path
.
resolve
(
process
.
cwd
(),
'/etc/letsencrypt/live/'
+
domain
+
'/cert.pem'
),
'utf8'
).
toString
(),
};
HTTPS
.
createServer
(
option
,
app
).
listen
(
sslport
,
()
=>
{
...
...
Please
register
or
login
to post a comment