Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gomicro-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizifeng
gomicro-base
Commits
8a2cccea
Commit
8a2cccea
authored
Jun 10, 2022
by
kzkzzzz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 补充配置
parent
d1a4fdab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
.gitignore
.gitignore
+0
-1
config.yaml
service/demo/config/config.yaml
+24
-0
No files found.
.gitignore
View file @
8a2cccea
...
...
@@ -4,5 +4,4 @@ tmp
bin
temp
*.log
*.yaml
.DS_Store
\ No newline at end of file
service/demo/config/config.yaml
0 → 100644
View file @
8a2cccea
Server
:
Name
:
"
service.demo"
ConsulServer
:
-
192.168.233.1:8500
Grpc
:
Addr
:
"
"
# 为空随机端口, 使用注册中心服务发现
Http
:
Addr
:
"
"
Mysql
:
dsn
:
remote:admin666@tcp(127.0.0.1:3306)/test?loc=Local&charset=utf8mb4&writeTimeout=3s&readTimeout=3s&timeout=1s&parseTime=true
MaxConn
:
8
MaxIdleConn
:
2
MaxLifetime
:
1800
# 连接有效时间,单位秒
Debug
:
true
Redis
:
Addr
:
127.0.0.1:6379
Password
:
"
"
DB
:
15
Log
:
Color
:
true
Level
:
DEBUG
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment