Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0c3d692a
authored
Jan 13, 2021
by
leejoker
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改配置文件支持环境变量
1 parent
70c8e627
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
linkwe-admin/src/main/resources/application-druid.yml
linkwe-admin/src/main/resources/application.yml
linkwe-admin/src/main/resources/application-druid.yml
View file @
0c3d692
...
@@ -6,7 +6,7 @@ spring:
...
@@ -6,7 +6,7 @@ spring:
druid
:
druid
:
# 主库数据源
# 主库数据源
master
:
master
:
url
:
jdbc:mysql://
127.0.0.1:3306
/link-wechat?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url
:
jdbc:mysql://
{DB_HOST:127.0.0.1}:{DB_PORT:3306}
/link-wechat?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username
:
root
username
:
root
password
:
root
password
:
root
# 从库数据源
# 从库数据源
...
...
linkwe-admin/src/main/resources/application.yml
View file @
0c3d692
...
@@ -69,9 +69,9 @@ spring:
...
@@ -69,9 +69,9 @@ spring:
# redis 配置
# redis 配置
redis
:
redis
:
# 地址
# 地址
host
:
localhost
host
:
{
REDIS_HOST
:
localhost
}
# 端口,默认为6379
# 端口,默认为6379
port
:
6379
port
:
{
REDIS_PORT
:
6379
}
# 密码
# 密码
password
:
password
:
# 连接超时时间
# 连接超时时间
...
@@ -145,7 +145,7 @@ xss:
...
@@ -145,7 +145,7 @@ xss:
# elasticsearch配置
# elasticsearch配置
elasticsearch
:
elasticsearch
:
schema
:
http
schema
:
http
address
:
localhost
address
:
{
ES_ADDRESS
:
localhost
}
connectTimeout
:
10000
connectTimeout
:
10000
socketTimeout
:
10000
socketTimeout
:
10000
connectionRequestTimeout
:
10000
connectionRequestTimeout
:
10000
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment