Toggle navigation
Toggle navigation
This project
Loading...
Sign in
오윤석
/
maplespec.ga
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
4
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
오윤석
2020-05-19 23:22:28 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
247385ba96f00bec8d3ff510981004b03e37d452
247385ba
1 parent
33fd0087
db password 저장 파일명 변경
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
.gitignore
app/docker-compose.yml
app/node/app.js
.gitignore
View file @
247385b
/app/config
/app/config
/*.secret
/app/node/node_modules
\ No newline at end of file
...
...
app/docker-compose.yml
View file @
247385b
...
...
@@ -58,10 +58,10 @@ services:
-
mariadb:/var/lib/mysql
-
./config:/config
environment
:
MYSQL_ROOT_PASSWORD_FILE
:
./config/db_password.
tx
t
MYSQL_ROOT_PASSWORD_FILE
:
./config/db_password.
secre
t
MYSQL_DATABASE
:
maple
MYSQL_USER
:
maple
MYSQL_PASSWORD_FILE
:
./config/db_password.
tx
t
MYSQL_PASSWORD_FILE
:
./config/db_password.
secre
t
TZ
:
Asia/Seoul
command
:
--character_set_client=utf8 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --character-set-client-handshake=FALSE
restart
:
on-failure
...
...
app/node/app.js
View file @
247385b
...
...
@@ -9,7 +9,7 @@ app.use(bodyParser.json());
var
db
;
fs
.
readFile
(
'./config/db_password.
tx
t'
,
function
(
err
,
data
)
{
fs
.
readFile
(
'./config/db_password.
secre
t'
,
function
(
err
,
data
)
{
db
=
mysql
.
createConnection
({
host
:
"172.28.0.4"
,
port
:
3306
,
...
...
Please
register
or
login
to post a comment