Heo

지도삽입 오류수정

...@@ -16,12 +16,8 @@ app.locals.pretty=true; ...@@ -16,12 +16,8 @@ app.locals.pretty=true;
16 // app.set('view engine','pug'); 16 // app.set('view engine','pug');
17 17
18 app.use(express.static('public')); 18 app.use(express.static('public'));
19 -var HTTPS = require('http'); 19 +var http = require('http');
20 var fs = require('fs'); 20 var fs = require('fs');
21 -const path = require('path');
22 -const domain = "도메인 변경"
23 - const sslport = 23023;
24 -
25 21
26 //?page=페이지번호&?perPage=페이지당 데이터수 22 //?page=페이지번호&?perPage=페이지당 데이터수
27 const $base_url = `https://api.odcloud.kr/api/apnmOrg/v1/list`; 23 const $base_url = `https://api.odcloud.kr/api/apnmOrg/v1/list`;
...@@ -104,18 +100,5 @@ app.listen(3000,function(){ ...@@ -104,18 +100,5 @@ app.listen(3000,function(){
104 console.log('Connected 3000 port!'); 100 console.log('Connected 3000 port!');
105 }); 101 });
106 102
107 -try { 103 +
108 -const opion = {
109 -ca: fs.readFileSync('/etc/letsencrypt/live/' + domain +'/fullchain.pem'),
110 -key: fs.readFileSync(path.resolve(process.cwd(), '/etc/letsencrypt/live/' + domain +'/privkey.pem'), 'utf8').toString(),
111 -cert: fs.readFileSync(path.resolve(process.cwd(), '/etc/letsencrypt/live/' + domain +'/cert.pem'), 'utf8').toString(),
112 -};
113 -HTTPS.createServer(option, app).listen(sslport, () => {
114 - console.log(`[HTTPS] Server is started on port ${sslport}`);
115 - });
116 - } catch (error) {
117 - console.log('[HTTPS] HTTPS 오류가 발생하였습니다. HTTPS 서버는 실행되지 않습니다.');
118 - console.log(error);
119 -}
120 -
121 104
......
...@@ -32,11 +32,11 @@ ...@@ -32,11 +32,11 @@
32 </form> 32 </form>
33 </center> 33 </center>
34 34
35 - <div id="map" style="width:1300px;height:750px; margin-left:100px; float:left; border: 3px solid; " ></div> 35 + <div id="map" style="width:1300px;height:750px; margin-left:100px; float:left; border: 3px solid; " ></div>
36 <script type="text/javascript" src="https://dapi.kakao.com/v2/maps/sdk.js?appkey=35fccf4b4e2a3179187346f26ed3f988&libraries=services"></script> 36 <script type="text/javascript" src="https://dapi.kakao.com/v2/maps/sdk.js?appkey=35fccf4b4e2a3179187346f26ed3f988&libraries=services"></script>
37 - 37 +
38 - <% if(typeof(info) != "undefined"){ %> 38 + <% if(typeof(info) != "undefined"){ %>
39 - <div id="map" style="width:65%;height:550px;float:left; margin-left: 2%; border-radius: 2%; border:1px solid black" ></div> 39 +
40 <div style="overflow:scroll; width:25%; height:550px;float:left; margin-left:2%; border:1px solid black;"> 40 <div style="overflow:scroll; width:25%; height:550px;float:left; margin-left:2%; border:1px solid black;">
41 <ol id="placelist"> 41 <ol id="placelist">
42 <% for(i=0; i<info.length; i++){%> 42 <% for(i=0; i<info.length; i++){%>
......