Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김서연
/
Corona_Vaccination_Medical_Institution
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
3
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Heo
2021-06-06 01:00:29 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
77713d2c8e367cf52abccfeb623cb59ac77ec838
77713d2c
1 parent
3aee806a
지도삽입 오류수정
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
19 deletions
app.js
views/index.ejs
app.js
View file @
77713d2
...
...
@@ -16,12 +16,8 @@ app.locals.pretty=true;
// app.set('view engine','pug');
app
.
use
(
express
.
static
(
'public'
));
var
HTTPS
=
require
(
'http'
);
var
http
=
require
(
'http'
);
var
fs
=
require
(
'fs'
);
const
path
=
require
(
'path'
);
const
domain
=
"도메인 변경"
const
sslport
=
23023
;
//?page=페이지번호&?perPage=페이지당 데이터수
const
$base_url
=
`https://api.odcloud.kr/api/apnmOrg/v1/list`
;
...
...
@@ -104,18 +100,5 @@ app.listen(3000,function(){
console
.
log
(
'Connected 3000 port!'
);
});
try
{
const
opion
=
{
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
}
`
);
});
}
catch
(
error
)
{
console
.
log
(
'[HTTPS] HTTPS 오류가 발생하였습니다. HTTPS 서버는 실행되지 않습니다.'
);
console
.
log
(
error
);
}
...
...
views/index.ejs
View file @
77713d2
...
...
@@ -36,7 +36,7 @@
<script
type=
"text/javascript"
src=
"https://dapi.kakao.com/v2/maps/sdk.js?appkey=35fccf4b4e2a3179187346f26ed3f988&libraries=services"
></script>
<
% if(typeof(info) != "undefined"){ %>
<div
id=
"map"
style=
"width:65%;height:550px;float:left; margin-left: 2%; border-radius: 2%; border:1px solid black"
></div>
<div
style=
"overflow:scroll; width:25%; height:550px;float:left; margin-left:2%; border:1px solid black;"
>
<ol
id=
"placelist"
>
<
% for(i=0; i
<info
.
length
;
i
++){%
>
...
...
Please
register
or
login
to post a comment