WXzhongwang opened a new issue, #5265:
URL: https://github.com/apache/shenyu/issues/5265

   ### Question
   
   Is there anything i missed?
   
   shenyu-admin:
   <img width="1493" alt="image" 
src="https://github.com/apache/shenyu/assets/27359059/c3f91076-ffc4-4019-bd4c-7ebdb25f6d13";>
   
   this is the shenyu-admin yaml config:
   ```yaml
   server:
     port: 9095
     address: 0.0.0.0
   
   spring:
     profiles:
       active: mysql
     thymeleaf:
       cache: true
       encoding: utf-8
       enabled: true
       prefix: classpath:/static/
       suffix: .html
     mvc:
       pathmatch:
         matching-strategy: ant_path_matcher
     jackson:
       time-zone: GMT+8 # GMT , Asia/Shanghai
     messages:
       basename: message/i18n
   
   
   management:
     health:
       mail:
         enabled: off
     endpoints:
       web:
         exposure:
           include:
             - 'health'
             - 'prometheus'
       enabled-by-default: true
   
   mybatis:
     config-location: classpath:/mybatis/mybatis-config.xml
     mapper-locations: classpath:/mappers/*.xml
     type-handlers-package: org.apache.shenyu.admin.mybatis.handler
   
   shenyu:
     register:
       registerType: http #http #zookeeper #etcd #nacos #consul
       serverLists: #localhost:2181 #http://localhost:2379 #localhost:8848
       props:
         sessionTimeout: 5000
         connectionTimeout: 2000
         checked: true
         zombieCheckThreads: 10
         zombieCheckTimes: 5
         scheduledTime: 10
         nacosNameSpace: ShenyuRegisterCenter
     sync:
       websocket:
         enabled: true
         messageMaxSize: 10240
         allowOrigins: ws://localhost:9095;ws://localhost:9195;
   #    apollo:
   #      meta: http://localhost:8080
   #      appId: shenyu
   #      portalUrl: http://localhost:8070
   #      env: dev
   #      clusterName: test
   #      namespace: application
   #      token: 
0fff5645fc74ee5e0d63a6389433c8c8afc0beea31eed0279ecc1c8961d12da9
   #    zookeeper:
   #      url: localhost:2181
   #      sessionTimeout: 5000
   #      connectionTimeout: 2000
   #    http:
   #      enabled: true
   #    nacos:
   #      url: localhost:8848
   #      namespace: 1c10d748-af86-43b9-8265-75f487d20c6c
   #      username:
   #      password:
   #      acm:
   #        enabled: false
   #        endpoint: acm.aliyun.com
   #        namespace:
   #        accessKey:
   #        secretKey:
   #    polaris:
   #      url: 127.0.0.1:8093
   #      namespace:
   #      fileGroup:
   #    etcd:
   #      url: http://localhost:2379
   #    consul:
   #      url: http://localhost:8500
     ldap:
       enabled: false
       url: ldap://xxxx:xxx
       bind-dn: cn=xxx,dc=xxx,dc=xxx
       password: xxxx
       base-dn: ou=xxx,dc=xxx,dc=xxx
       object-class: person
       login-field: cn
     jwt:
       expired-seconds: 86400000
     shiro:
       white-list:
         - /
         - /favicon.*
         - /static/**
         - /index**
         - /platform/login
         - /websocket
         - /error
         - /actuator/health
         - /actuator/health/** # /actuator/health/readiness 
/actuator/health/liveness
         - /actuator/prometheus
         - /swagger-ui.html
         - /swagger-ui/**
         - /webjars/**
         - /v3/api-docs/**
         - /csrf
         - /alert/report
     dashboard:
       core:
         onlySuperAdminPermission:
           - system:manager:add
           - system:manager:edit
           - system:manager:delete
           - system:role:add
           - system:role:edit
           - system:role:delete
           - system:resource:addButton
           - system:resource:addMenu
           - system:resource:editButton
           - system:resource:editMenu
           - system:resource:deleteButton
           - system:resource:deleteMenu
   
   springdoc:
     api-docs:
       enabled: true
     swagger-ui:
       enabled: true
       tags-sorter: alpha
     packages-to-scan: org.apache.shenyu.admin.controller
     paths-to-match: /**
   
   logging:
     level:
       root: info
       org.springframework.boot: info
       org.apache.ibatis: info
       org.apache.shenyu.bonuspoint: info
       org.apache.shenyu.lottery: info
       org.apache.shenyu: info
   #    org.apache.shenyu.admin.utils.HttpUtils: debug
   ```
   application-mysql.yaml: 
   ```yaml
   shenyu:
     database:
       dialect: mysql
       init_enable: true
   
   spring:
     datasource:
       url: 
jdbc:mysql://host.docker.internal:3306/shenyu?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull
       username: root
       password: xxxx
       driver-class-name: com.mysql.cj.jdbc.Driver
       hikari:
         connection-timeout: 30000
         minimum-idle: 5
         maximum-pool-size: 20
         auto-commit: true
         idle-timeout: 600000
         max-lifetime: 1800000
         connection-test-query: SELECT 1
         connection-init-sql: SET NAMES utf8mb4
         validation-timeout: 800
     mail:
       # Attention: this is mail server address.
       host: smtp.qq.com
       username: [email protected]
       # Attention: this is not email account password, this requires an email 
authorization code
       password: your-password
       #Attention: Tencent mail smtps 465,smtp 587
       port: 587
       properties:
         mail:
           smtp:
             socketFactoryClass: javax.net.ssl.SSLSocketFactory
             ssl:
               enable: true
   ```
   
   
   shenyu-bootstrap:
   <img width="1490" alt="image" 
src="https://github.com/apache/shenyu/assets/27359059/b95f865e-74ad-49a2-b72e-5e6cb2d018a8";>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to