cors:
|
mode: strict-whitelist
|
whitelist:
|
- allow-origin: example1.com
|
allow-methods: POST, GET
|
allow-headers: Content-Type,AccessToken,X-CSRF-Token, Authorization, Token,X-Token,X-User-Id
|
expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type
|
allow-credentials: true
|
- allow-origin: example2.com
|
allow-methods: GET, POST
|
allow-headers: content-type
|
expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type
|
allow-credentials: true
|
db-list:
|
- type: ""
|
alias-name: ""
|
prefix: ""
|
port: ""
|
config: ""
|
db-name: ""
|
username: ""
|
password: ""
|
path: ""
|
engine: ""
|
log-mode: ""
|
max-idle-conns: 10
|
max-open-conns: 100
|
singular: false
|
log-zap: false
|
disable: true
|
mysql:
|
prefix: ""
|
port: "3306"
|
config: charset=utf8mb4&parseTime=True&loc=Local
|
db-name: aps_server2
|
username: root
|
password: c++java123
|
path: 192.168.20.119
|
engine: ""
|
log-mode: info
|
max-idle-conns: 10
|
max-open-conns: 100
|
singular: false
|
log-zap: true
|
system:
|
env: public
|
db-type: mysql
|
router-prefix: "/api-srm"
|
addr: 8004
|
grpc-port: "9093"
|
grpc-url: 192.168.20.119:9091
|
grpc-admin-url: 192.168.20.119:50051
|
grpc-wms-url: 192.168.20.119:8006
|
tencent-cos:
|
bucket: xxxxx-10005608
|
region: ap-shanghai
|
secret-id: your-secret-id
|
secret-key: your-secret-key
|
base-url: https://gin.vue.admin
|
path-prefix: srm
|
timer:
|
spec: '@daily'
|
detail:
|
- tableName: sys_operation_records
|
compareField: created_at
|
interval: 2160h
|
- tableName: jwt_blacklists
|
compareField: created_at
|
interval: 168h
|
start: true
|
with_seconds: false
|
zap:
|
level: debug
|
prefix: '[srm]'
|
format: console
|
director: log
|
encode-level: LowercaseColorLevelEncoder
|
stacktrace-key: stacktrace
|
max-age: 0
|
show-line: true
|
log-in-console: true
|