Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김대욱
/
OSS_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
김대욱
2020-12-10 15:50:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7ba1b003dd513cb20eb0ade2b50a484a60459e94
7ba1b003
1 parent
c84d92c5
app.js re
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
nodejs/app.js
nodejs/app.js
View file @
7ba1b00
const
request
=
require
(
'request'
);
/*
const fs = require('fs');
const path = require('path');
const HTTPS = require('https');
const domain = "www.osstestdw.ml"
const sslport = 23023;
*/
var
express
=
require
(
'express'
)
var
app
=
express
()
...
...
@@ -161,7 +163,7 @@ var server = app.listen(23023, function(){
var
port
=
server
.
address
().
port
;
console
.
log
(
'App listening at http://%s:%s'
,
host
,
port
)
})
/*
try {
const option = {
ca: fs.readFileSync('/etc/letsencrypt/live/' + domain +'/fullchain.pem'),
...
...
@@ -175,4 +177,4 @@ try {
} catch (error) {
console.log('[HTTPS] HTTPS 오류가 발생하였습니다. HTTPS 서버는 실행되지 않습니다.');
console.log(error);
}
}
*/
...
...
Please
register
or
login
to post a comment