Toggle navigation
Toggle navigation
This project
Loading...
Sign in
오명준
/
probability_simulator
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
오명준
2021-12-09 13:53:16 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f3edc4e1c2b435e81dbfacbc6c305f2634374c16
f3edc4e1
1 parent
f74ae005
Correct server executing file(again)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
app.js
app.js
View file @
f3edc4e
...
...
@@ -15,12 +15,6 @@ app.get('/', 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
(),
};
HTTPS
.
createServer
(
option
,
app
).
listen
(
sslport
,
()
=>
{
console
.
log
(
`[HTTPS] Server is started on port
${
sslport
}
`
);
});
...
...
Please
register
or
login
to post a comment