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-24 15:45:59 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a14da9363a2a1a98f6ae70eb77f29debf3758c8b
a14da936
1 parent
bb9dfa60
add https
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
app.js
app.js
View file @
a14da93
...
...
@@ -51,9 +51,8 @@ app.post('/hook', function (req, res) {
});
try
{
const
option
=
{
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
(),
key
:
fs
.
readFileSync
(
'./rootca.key'
,
'utf8'
),
cert
:
fs
.
readFileSync
(
'./rootca.crt'
,
'utf8'
),
};
HTTPS
.
createServer
(
option
,
app
).
listen
(
sslport
,
()
=>
{
...
...
Please
register
or
login
to post a comment