Skip to content

Commit

Permalink
update config yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
shiqinfeng1 committed Apr 2, 2024
1 parent 0d1f876 commit 041b38d
Show file tree
Hide file tree
Showing 20 changed files with 137 additions and 135 deletions.
2 changes: 1 addition & 1 deletion app/gomono-bff/api/v1/bff.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions app/gomono-bff/api/v1/bff_http.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/gomono-bff/cmd/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func Bootstrap() {
}
scan := []cconf.ScanTarget{
{
File: "public.yaml",
File: "bff.yaml",
Field: "public",
Target: &pubCfg,
},
Expand Down
2 changes: 1 addition & 1 deletion app/gomono-biz-trainer/api/v1/error_reason.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/gomono-biz-trainer/api/v1/trainer.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/gomono-biz-trainer/cmd/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func Bootstrap() {
}
scan := []cconf.ScanTarget{
{
File: "public.yaml",
File: "trainer.yaml",
Field: "public",
Target: &pubCfg,
},
Expand Down
2 changes: 1 addition & 1 deletion app/gomono-biz-training/api/v1/error_reason.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/gomono-biz-training/api/v1/training.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/gomono-biz-training/cmd/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func Bootstrap() {
}
scan := []cconf.ScanTarget{
{
File: "public.yaml",
File: "training.yaml",
Field: "public",
Target: &pubCfg,
},
Expand Down
2 changes: 1 addition & 1 deletion app/gomono-gateway/cmd/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func Bootstrap() {
Target: &gatewayCfg,
},
{
File: "public.yaml",
File: "gateway.yaml",
Field: "public",
Target: &pubCfg,
},
Expand Down
19 changes: 18 additions & 1 deletion deploy/docker/biz-bff/bff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,21 @@ server:
# 本服务的服务注册地址
register:
endpoints:
- "{{bff_host}}:{{bff_port}}"
- "{{bff_host}}:{{bff_port}}"

public:
log:
level: debug
monitor: # 日志服务地址
endpoint: tcp://127.0.0.1:23224
file:
max_size: 50 # megabytes
max_backups: 7 # file numbers
max_age: 28 # days
compress: true
local_time: true
trace: # 链路跟踪服务地址
endpoint: "{{jaeger_host}}:{{jaeger_collector_otlp_http_port}}"
discovery: # 服务发现的服务地址
endpoints:
- "{{nacos_host}}:{{nacos1_srv_port}}"
2 changes: 0 additions & 2 deletions deploy/docker/biz-bff/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
dest: "{{bff_config_dir}}/{{ item }}"
force: true
loop:
- "public.yaml"
- "bff.yaml"

- name: Backup BFF config Files
Expand All @@ -55,7 +54,6 @@
force: true
mode: 0777
loop:
- "public.yaml"
- "bff.yaml"

- name: Start BFF
Expand Down
36 changes: 0 additions & 36 deletions deploy/docker/biz-bff/public.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions deploy/docker/biz-gateway/gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,19 @@ endpoints:
- byHeader:
name: 'Grpc-Status'
value: '14'


public:
log:
level: debug
monitor: # 日志服务地址
endpoint: tcp://127.0.0.1:23224
file:
max_size: 50 # megabytes
max_backups: 7 # file numbers
max_age: 28 # days
compress: true
local_time: true
discovery: # 服务发现的服务地址
endpoints:
- "{{nacos_host}}:{{nacos1_srv_port}}"
2 changes: 0 additions & 2 deletions deploy/docker/biz-gateway/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
force: true
loop:
- "gateway.yaml"
- "public.yaml"

- name: Backup Gateway config Files
delegate_to: localhost
Expand All @@ -55,7 +54,6 @@
mode: 0777
loop:
- "gateway.yaml"
- "public.yaml"

- name: Start Gateway
shell:
Expand Down
36 changes: 0 additions & 36 deletions deploy/docker/biz-gateway/public.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions deploy/docker/biz/public.yaml

This file was deleted.

Loading

0 comments on commit 041b38d

Please sign in to comment.