# Kratos Admin Configuration # server configuration server: http: addr: 0.0.0.0:8000 timeout: 1s grpc: addr: 0.0.0.0:9000 timeout: 1s # jwt configuration jwt: signing_key: kratos-admin expires_time: 7d buffer_time: 1d issuer: kratos-admin # system configuration system: env: local db_type: mysql oss_type: local use_redis: false use_multipoint: false iplimit_count: 15000 iplimit_time: 3600 router_prefix: "" use_strict_auth: false # captcha configuration captcha: key_long: 6 img_width: 240 img_height: 80 open_captcha: 0 open_captcha_timeout: 3600 # mysql configuration mysql: path: 127.0.0.1 port: "3306" config: charset=utf8mb4&parseTime=True&loc=Local db_name: spa username: root password: Xu950329. max_idle_conns: 10 max_open_conns: 100 log_mode: info log_zap: false # pgsql configuration pgsql: path: "" port: "" config: "" db_name: "" username: "" password: "" max_idle_conns: 10 max_open_conns: 100 log_mode: "" log_zap: false # sqlite configuration sqlite: path: "" db_name: "" max_idle_conns: 10 max_open_conns: 100 log_mode: "" log_zap: false # redis configuration redis: use_cluster: false addr: 127.0.0.1:6379 password: "" db: 0 cluster_addrs: - "127.0.0.1:7000" - "127.0.0.1:7001" - "127.0.0.1:7002" # local storage configuration local: path: uploads/file store_path: uploads/file # qiniu configuration qiniu: zone: ZoneHuaDong bucket: "" img_path: "" use_https: false access_key: "" secret_key: "" use_cdn_domains: false # minio configuration minio: endpoint: "" access_key_id: "" access_key_secret: "" bucket_name: "" use_ssl: false base_path: "" bucket_url: "" # aliyun oss configuration aliyun_oss: endpoint: "" access_key_id: "" access_key_secret: "" bucket_name: "" bucket_url: "" base_path: "" # tencent cos configuration tencent_cos: bucket: "" region: "" secret_id: "" secret_key: "" base_url: "" path_prefix: "" # aws s3 configuration aws_s3: bucket: "" region: "" endpoint: "" s3_force_path_style: false disable_ssl: false secret_id: "" secret_key: "" base_url: "" path_prefix: "" # cloudflare r2 configuration cloudflare_r2: bucket: "" base_url: "" path: uploads account_id: "" access_key_id: "" secret_access_key: "" # huawei obs configuration huawei_obs: path: "" bucket: "" endpoint: "" access_key: "" secret_key: "" # email configuration email: to: "" port: 465 from: "" host: "" is_ssl: true secret: "" nickname: "" # excel configuration excel: dir: ./resource/excel/ # cors configuration cors: mode: allow-all whitelist: - allow_origin: "*" allow_headers: Content-Type,AccessToken,X-CSRF-Token,Authorization,Token,X-Token,X-User-Id allow_methods: POST,GET,OPTIONS,DELETE,PUT expose_headers: Content-Length,Access-Control-Allow-Origin,Access-Control-Allow-Headers,Content-Type allow_credentials: true # zap logger configuration zap: level: info format: console prefix: "[kratos-admin]" director: log show_line: true encode_level: LowercaseColorLevelEncoder stacktrace_key: stacktrace log_in_console: true retention_day: -1 # autocode configuration autocode: web: web/src root: "" server: "" module: kra ai_path: "" # mcp configuration mcp: name: kra-mcp version: "1.0.0" sse_path: /mcp/sse message_path: /mcp/message url_prefix: "" addr: 8080 separate: false enabled: true