-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor($Consul): use
@
as profile separator
[skip ci]
- Loading branch information
1 parent
c8305fb
commit 209e079
Showing
25 changed files
with
126 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
docker/configuration/consul-yaml-configuration/config/auth-center@development-local/data.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
greeting: "Hello, World! From Consul config center!" | ||
|
||
maf: | ||
configuration: | ||
permission: | ||
ignored-service-ids: | ||
- "consul" | ||
- "api-gateway" | ||
- "spring-boot-admin" | ||
- "auth-center" | ||
excel: | ||
maximum-row-count: 3000 | ||
|
||
logging: | ||
level: | ||
org.springframework.boot.context.config: TRACE |
16 changes: 16 additions & 0 deletions
16
docker/configuration/consul-yaml-configuration/config/auth-center@production/data.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
greeting: "Hello, World! From Consul config center!" | ||
|
||
maf: | ||
configuration: | ||
permission: | ||
ignored-service-ids: | ||
- "consul" | ||
- "api-gateway" | ||
- "spring-boot-admin" | ||
- "auth-center" | ||
excel: | ||
maximum-row-count: 3000 | ||
|
||
logging: | ||
level: | ||
org.springframework.boot.context.config: TRACE |
16 changes: 16 additions & 0 deletions
16
docker/configuration/consul-yaml-configuration/config/auth-center@stage/data.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
greeting: "Hello, World! From Consul config center!" | ||
|
||
maf: | ||
configuration: | ||
permission: | ||
ignored-service-ids: | ||
- "consul" | ||
- "api-gateway" | ||
- "spring-boot-admin" | ||
- "auth-center" | ||
excel: | ||
maximum-row-count: 3000 | ||
|
||
logging: | ||
level: | ||
org.springframework.boot.context.config: TRACE |
16 changes: 16 additions & 0 deletions
16
docker/configuration/consul-yaml-configuration/config/auth-center@test/data.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
greeting: "Hello, World! From Consul config center!" | ||
|
||
maf: | ||
configuration: | ||
permission: | ||
ignored-service-ids: | ||
- "consul" | ||
- "api-gateway" | ||
- "spring-boot-admin" | ||
- "auth-center" | ||
excel: | ||
maximum-row-count: 3000 | ||
|
||
logging: | ||
level: | ||
org.springframework.boot.context.config: TRACE |
File renamed without changes.
File renamed without changes.
File renamed without changes.
56 changes: 56 additions & 0 deletions
56
...iguration/consul-yaml-configuration/shardingsphere/application@development-local/data.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
spring: | ||
shardingsphere: | ||
props: | ||
sql: | ||
#设置sql是否展示 | ||
show: true | ||
datasource: | ||
#数据库名称(可以与数据库中的库名不一致) | ||
names: ds0,ds1 | ||
ds0: | ||
type: com.alibaba.druid.pool.DruidDataSource | ||
driver-class-name: com.mysql.cj.jdbc.Driver | ||
url: jdbc:mysql://192.169.50.200:3306/ds0?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT | ||
username: root | ||
password: ROOT | ||
# 数据库连接池的最小连接数 | ||
min-idle: 5 | ||
# 初始化连接数 | ||
initial-size: 5 | ||
# 最大连接数 | ||
max-total: 5 | ||
max-wait-millis: 200s | ||
ds1: | ||
type: com.alibaba.druid.pool.DruidDataSource | ||
driver-class-name: com.mysql.cj.jdbc.Driver | ||
url: jdbc:mysql://192.169.50.201:3306/ds1?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT | ||
username: root | ||
password: ROOT | ||
# 数据库连接池的最小连接数 | ||
min-idle: 5 | ||
# 初始化连接数 | ||
initial-size: 5 | ||
# 最大连接数 | ||
max-total: 5 | ||
max-wait-millis: 200s | ||
sharding: | ||
#分库策略 | ||
default-database-strategy: | ||
inline: | ||
#根据id取模决定去那个库 | ||
algorithm-expression: ds$->{id % 2} | ||
sharding-column: id | ||
tables: | ||
#逻辑表名,这里的user_info为逻辑表名,user_info_0,user_info_1,user_info_2为实际表 | ||
user_info: | ||
actual-data-nodes: ds$->{0..1}.user_info_$->{0..2} | ||
table-strategy: | ||
#根据id取模决定去那个表 | ||
inline: | ||
sharding-column: id | ||
algorithm-expression: user_info_$->{id % 3} | ||
key-generator: | ||
#id使用雪花算法 | ||
column: id | ||
#雪花算法 | ||
type: SNOWFLAKE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters