feat():learning后台管理项目初始化
This commit is contained in:
67
k8s/configmap.yaml
Normal file
67
k8s/configmap.yaml
Normal file
@@ -0,0 +1,67 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: goalfymax-admin-config
|
||||
namespace: goalfyagent
|
||||
data:
|
||||
config-prod.yaml: |
|
||||
server:
|
||||
addr: "0.0.0.0"
|
||||
port: 8087
|
||||
|
||||
database:
|
||||
# 请根据实际环境配置数据库连接信息
|
||||
dsn: "goalfymax:m^ZLrwJ9sgWk@tcp(goalfyagent-aurora-mysql-staging.cb2sq6y2mg93.us-west-2.rds.amazonaws.com:3306)/goalfymax?charset=utf8mb4&parseTime=True&loc=Local"
|
||||
maxIdleConns: 10
|
||||
maxOpenConns: 100
|
||||
logLevel: "info"
|
||||
|
||||
gateway:
|
||||
base_url: "http://ai-gateway.goalfymax.svc"
|
||||
timeout: 30
|
||||
auth:
|
||||
login_url: "http://ai-gateway.goalfymax.svc/aigateway-admin/api/login"
|
||||
key: "Jiahe.123"
|
||||
|
||||
sso:
|
||||
sso_server_url: "https://passport.goalfyai.com"
|
||||
client_id: "3aU5j4Js89qmWDQjmplSJA"
|
||||
redirect_uri: "https://goalfymax-admin.goalfyai.com"
|
||||
scope: "openid profile email"
|
||||
resource_aud: "api://admin"
|
||||
timeout: 30s
|
||||
admin_token: "goalfy_admin_token_1028_v1"
|
||||
|
||||
# OSS 对象存储配置
|
||||
oss:
|
||||
endpoint: "https://goalfyagent-data-prod.s3.us-west-2.amazonaws.com/"
|
||||
region: "us-west-2"
|
||||
access_key_id: "AKIASSWQCE5VWZDYDLMO"
|
||||
access_key_secret: "q2div6qLjfgLYa/u/4f/VxLrgCYN5tDjXcCucLWq"
|
||||
bucket: "goalfyagent-data-prod"
|
||||
assume_role_arn: "arn:aws:iam::177603749739:role/s3-test"
|
||||
presign_url_expire: 30m
|
||||
|
||||
log:
|
||||
level: "info"
|
||||
format: "json"
|
||||
output: "stdout"
|
||||
|
||||
message_push:
|
||||
goalfymax_base_url: "https://goalfymax.goalfyai.com"
|
||||
timeout: 30
|
||||
retry_count: 3
|
||||
retry_interval: 1000
|
||||
|
||||
redis:
|
||||
addr: "redis.middleware.svc.cluster.local:26379" # K8s 集群内 Redis 服务地址
|
||||
password: "goalfyai_ops"
|
||||
db: 0
|
||||
|
||||
email:
|
||||
sender: "goalfymax@goalfyai.com"
|
||||
host: "smtp.mxhichina.com"
|
||||
port: 465
|
||||
username: "goalfymax@goalfyai.com"
|
||||
password: "efRuPRpGKS6gZpuw"
|
||||
invite_url_prefix: "https://passport.goalfyai.com/invite/"
|
||||
Reference in New Issue
Block a user