Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김대철
/
CafeRecommend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김대철
2021-06-07 16:00:05 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
87145cea80a588b9ea50e1026e3910e8015df552
87145cea
1 parent
b2c920f0
CHORE: 보안키 설정
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
14 deletions
routes/index.js
sessions/dFq83LIVEv6StE3w87Z9Dqedv42L3Ifc.json
views/index.ejs
views/map.ejs
routes/index.js
View file @
87145ce
...
...
@@ -5,8 +5,7 @@ var bodyParser = require("body-parser");
var
{
OAuth2Client
}
=
require
(
"google-auth-library"
);
const
CLIENT_ID
=
"94679084723-s5f0686p2porp9mkakrp1p89a48n24nj.apps.googleusercontent.com"
;
const
CLIENT_ID
=
"발급받은 ClientID"
;
var
client
=
new
OAuth2Client
(
CLIENT_ID
);
var
mysql
=
require
(
"mysql"
);
const
session
=
require
(
"express-session"
);
...
...
@@ -16,7 +15,7 @@ router.use(bodyParser.urlencoded({ extended: false })); //url인코딩 x
router
.
use
(
bodyParser
.
json
());
//json방식으로 파싱
router
.
use
(
session
({
secret
:
"원하는암호"
,
// 암호화
secret
:
"원하는
암호"
,
// 암호화
resave
:
false
,
saveUninitialized
:
true
,
store
:
new
FileStore
(),
...
...
@@ -24,7 +23,7 @@ router.use(
);
var
connection
=
mysql
.
createConnection
({
host
:
"IP주소 입력 (localhost 또는
AWS
서버 주소)"
,
host
:
"IP주소 입력 (localhost 또는 서버 주소)"
,
user
:
"계정 입력"
,
password
:
"암호 입력"
,
database
:
"스키마이름 입력"
,
...
...
sessions/dFq83LIVEv6StE3w87Z9Dqedv42L3Ifc.json
0 → 100644
View file @
87145ce
{
"cookie"
:{
"originalMaxAge"
:
null
,
"expires"
:
null
,
"httpOnly"
:
true
,
"path"
:
"/"
},
"__lastAccess"
:
1623049062312
,
"user"
:{
"email"
:
"kdc9619@khu.ac.kr"
,
"picture"
:
"https://lh3.googleusercontent.com/a/AATXAJyP14ipRboJZ8T5-oNS3sRp4CG8wKCEwVABQ5G_=s96-c"
,
"nickname"
:
"dckat"
,
"age"
:
26
,
"gender"
:
"male"
}}
\ No newline at end of file
views/index.ejs
View file @
87145ce
views/map.ejs
View file @
87145ce
...
...
@@ -137,16 +137,6 @@
>
Logout
<span
class=
"sr-only"
>
(current)
</span></a
>
</li>
<li
class=
"nav-item active"
>
<a
class=
"nav-link"
style=
"color: #ffffff"
href=
"javascript:void(0);"
onclick=
"recommend();"
>
Recommend
<span
class=
"sr-only"
>
(current)
</span>
</a>
</li>
</ul>
</div>
</nav>
...
...
Please
register
or
login
to post a comment