spring:
  application:
    name: fe-server
  profiles:
    active: dev

server:
  port: 8081

logging:
  file:
    path: logs

springdoc:
  api-docs:
    enabled: true
  swagger-ui:
    # Knife4j 依赖 /v3/api-docs/swagger-config，须保持 enabled=true
    enabled: true
    path: /swagger-ui.html

knife4j:
  enable: true
  setting:
    language: zh_cn

fe:
  security:
    jwt-secret: 68df79f4d75b6afc89738872b3e41625330b052dcfcf2bc421450df0290a65g0
    jwt-expire-seconds: 7200
    mobile-aes-key: FU2GR30Iw76PjXbO
    password-rsa-public-key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdHnzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ==
    password-rsa-private-key: MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAqhHyZfSsYourNxaY7Nt+PrgrxkiA50efORdI5U5lsW79MmFnusUA355oaSXcLhu5xxB38SMSyP2KvuKNPuH3owIDAQABAkAfoiLyL+Z4lf4Myxk6xUDgLaWGximj20CUf+5BKKnlrK+Ed8gAkM0HqoTt2UZwA5E2MzS4EI2gjfQhz5X28uqxAiEA3wNFxfrCZlSZHb0gn2zDpWowcSxQAgiCstxGUoOqlW8CIQDDOerGKH5OmCJ4Z21v+F25WaHYPxCFMvwxpcw99EcvDQIgIdhDTIqD2jfYjPTY8Jj3EDGPbH2HHuffvflECt3Ek60CIQCFRlCkHpi7hthhYhovyloRYsM+IS9h/0BzlEAuO0ktMQIgSPT3aFAgJYwKpqRYKlLDVcflZFCKY7u3UP8iWi1Qw0Y=
    password-max-failures: 5
    password-lock-minutes: 10
  wechat:
    miniapp:
      mock-enabled: false
      app-id: wx01c326e8fff67376
      app-secret: 54715e3f42f5421e5771c58cbf2dedb3
      mock-openid: mock_wx_openid_dev
  registration:
    qr:
      # 对应 POST /wxa/getwxacodeunlimit
      page: pages/worker/job-offer
      # 页面未发布到微信后台前务必 false，否则易报 41030/85079
      check-path: false
      env-version: release
      # 微信失败时写占位图，避免确认方案失败回滚；真正上线可改为 false
      fallback-mock-on-error: true
      width: 430
      default-valid-days: 7
      storage-path: ${FE_QR_STORAGE_PATH:./data/registration-qr}
      public-url-prefix: ${FE_QR_PUBLIC_URL_PREFIX:}
  sms:
    mock-enabled: true
    mock-code: "123456"
    code-ttl-seconds: 300
    send-cooldown-seconds: 60
    max-verify-attempts: 5
    aliyun:
      access-key-id: ${ALIYUN_SMS_ACCESS_KEY_ID:}
      access-key-secret: ${ALIYUN_SMS_ACCESS_KEY_SECRET:}
      sign-name: ${ALIYUN_SMS_SIGN_NAME:}
      template-code: ${ALIYUN_SMS_TEMPLATE_CODE:}
      template-param-name: code
      endpoint: dysmsapi.aliyuncs.com
  kb:
    enabled: true
    scheme: http
    host: harrison1.iask.in
    port: 9188
    default-model: default
    default-agent-id: default
    default-knowledge-base: default
    file-url-base: ""
    upload-path: ${FE_KB_UPLOAD_PATH:}
    url-rewrite-from-host: ""
    url-rewrite-to-host: ""
    connect-timeout-ms: 15000
    read-timeout-ms: 120000
    stream-read-timeout-ms: 300000
    max-retries: 2
    retry-interval-ms: 500
  internal:
    enabled: true
    ai-key: VAIBADANBgkqhkiG
    allowed-ips: []
