erp_server/pack/.service.config.tpl.yaml
2022-10-09 11:39:33 +08:00

47 lines
1.9 KiB
YAML

{{- $develop := "develop" }}
{{- $local := "local" -}}
config:
server:
host: {{ if or (eq .Stage $local) (eq .Stage $develop) }}192.168.20.45{{end}}
port: {{ if or (eq .Stage $local) (eq .Stage $develop) }}1001{{end}}
service:
name: {{.Service}}
stage: {{.Stage}}
http:
port: {{ if or (eq .Stage $local) (eq .Stage $develop) }}10100{{else}}80{{- end}}
rpc:
port: {{ if or (eq .Stage $local) (eq .Stage $develop) }}10101{{else}}1000{{- end}}
mysql:
driver: mysql
host: {{ if or (eq .Stage $local) (eq .Stage $develop) }}rm-wz9qf3m85605602z33o.mysql.rds.aliyuncs.com{{- end}}
port: {{ if or (eq .Stage $local) (eq .Stage $develop) }}3306{{- end}}
db_name: {{ if or (eq .Stage $local) (eq .Stage $develop) }}bibi_test{{- end}}
user: {{ if or (eq .Stage $local) (eq .Stage $develop) }}bibi_test{{- end}}
password: {{ if or (eq .Stage $local) (eq .Stage $develop) }}c8b1521533f766c01d8ebf5b8217c3e2{{- end}}
charset: utf8mb4
parseTime: true
maxIdle: 500
maxOpen: 1000
debug: true
redis:
host: {{ if or (eq .Stage $local) (eq .Stage $develop) }}r-wz944zuf47go86xx61pd.redis.rds.aliyuncs.com{{- end}}
port: {{ if or (eq .Stage $local) (eq .Stage $develop) }}6379{{- end}}
db: 0
password: {{ if or (eq .Stage $local) (eq .Stage $develop) }}Af63ee0752e9fc03717601fac67693fe{{- end}}
maxIdle: 200
maxActive: 100
idleTimeout: 5
connectTimeout: 300
readTimeout: 3000
writeTimeout: 1800
defaultExpiration: 3600
mongo:
host: {{ if or (eq .Stage $local) (eq .Stage $develop) }}dds-wz956563ee8204442759-pub.mongodb.rds.aliyuncs.com{{- end}}
port: {{ if or (eq .Stage $local) (eq .Stage $develop) }}3717{{- end}}
db_name: {{ if or (eq .Stage $local) (eq .Stage $develop) }}admin{{- end}}
user: {{ if or (eq .Stage $local) (eq .Stage $develop) }}root{{- end}}
password: {{ if or (eq .Stage $local) (eq .Stage $develop) }}dasdRRFs*wadf{{- end}}