sys: # Your App secret key will be used for securely signing the session cookie # Make sure you are changing this key for your deployment with a strong key. # You can generate a strong key using `openssl rand -base64 42`. # Alternatively you can set it with `SECRET_KEY` environment variable. secret-key: WrLAa6u2LxhO+rQYQM7id01/FJPZ2GxH3pY/A2IFO6mOA0uaKzUIYWOC # Console API base URL console-api-url: http://localhost:8181 console-web-url: http://localhost:5173 # Model Configuration multimodal-send-image-format: base64 # Files URL files-url: http://127.0.0.1:5123 # Storage configuration # use for store upload files, private keys... # storage type: local, aliyun-oss, tencent-cos storage-type: local storage-local-path: D:/dev/ai-writing/storage/ # Aliyun oss Storage configuration aliyun-oss-bucket-name: your-bucket-name aliyun-oss-access-key: your-access-key aliyun-oss-secret-key: your-secret-key aliyun-oss-endpoint: your-endpoint aliyun-oss-auth-version: v1 aliyun-oss-region: your-region # Invite Configuration invite-expiry-hours: 24 server: # 应用服务 WEB 访问端口 port: 8282 spring: ### 处理连接池冲突 ##### main: allow-bean-definition-overriding: true # 数据源 datasource: # url: jdbc:kingbase8://172.26.138.234:54321/ai-writing?currentSchema=public # username: system # password: 123456 # driver-class-name: com.kingbase8.Driver driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://223.83.129.121:33060/oai-writting?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true username: oai-write password: rpriBbbPRzBNFDYS # url: jdbc:mysql://127.0.0.1:3306/ai-writting?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true # username: root # password: zhangjie type: com.zaxxer.hikari.HikariDataSource # 数据库 连接池 hikari: auto-commit: true connection-test-query: SELECT 1 validation-timeout: 1000 connection-timeout: 60000 idle-timeout: 600000 max-lifetime: 1200000 maximum-pool-size: 15 minimum-idle: 10 pool-name: HikariCP data: redis: port: 6379 host: localhost password: database: 0 lettuce: pool: # 连接池最大连接数(使用负值表示没有限制) 默认 8 max-active: 8 # 连接池中的最大空闲连接 默认 8 max-idle: 8 # 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1 max-wait: -1 # 连接池中的最小空闲连接 默认 0 min-idle: 0 mail: # default(默认smtp邮箱服务) , aliyun-mail-push (阿里云邮件推送) type: aliyun-mail-push ak: LTAI5t9xS8GFTSxwWJmi8BMk sk: ntjZii2NFteyh4JshILyDf9xZwc79L host: smtpdm.aliyun.com port: 465 username: robot@mail.oailab.com password: OaiMail13579 protocol: smtp properties: mail: smtp: auth: true ssl: enable: true # Login jwt: # Token 有效天数 token-validity-days: 15 # Upload configuration upload: upload-file-size-limit: 15 upload-file-batch-limit: 5 upload-image-file-size-limit: 10