application-base.yml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. server:
  2. port: 8866
  3. servlet:
  4. context-path: /approve-gateway
  5. spring:
  6. application:
  7. name: approve-gateway
  8. cloud:
  9. nacos:
  10. discovery:
  11. server-addr: 127.0.0.1:8848
  12. zuul:
  13. retryable: true
  14. # 这个配置必须保留,才会传递Authorization,cookie等
  15. sensitive-headers:
  16. host:
  17. connect-timeout-millis: 60000
  18. socket-timeout-millis: 60000
  19. ribbon:
  20. ConnectTimeout: 60000 # 连接超时时间(ms)
  21. ReadTimeout: 60000 # 通信超时时间(ms)
  22. OkToRetryOnAllOperations: true # 是否对所有操作重试
  23. MaxAutoRetriesNextServer: 2 # 同一服务不同实例的重试次数
  24. MaxAutoRetries: 1 # 同一实例的重试次数
  25. hystrix:
  26. command:
  27. default:
  28. execution:
  29. isolation:
  30. thread:
  31. timeoutInMillisecond: 60000 # 熔断超时时长:6000ms
  32. duceap:
  33. license:
  34. dataCacheMethod: apollo
  35. #配置用来指定license对接的后端项目地址(格式:ip:port/context,如http://10.10.10.10:8080/ctx),默认使用HttpServletRequest.getLocalAddr()方法获取ip地址,应用在docker部署环境中无法获取机子的真实ip地址 考虑以配置参数的形式传入
  36. #address: http://10.10.10.10:8080/ctx
  37. enabled: false
  38. apollo:
  39. client:
  40. host: http://192.168.10.27:8070 #配置中心地址(portal端)
  41. security:
  42. ##配置登陆方式,dids、dssoac、dcuc、huawei
  43. type: dcuc
  44. ##dids登录配置#
  45. dids2:
  46. ##应用代码
  47. appCode: YHZX0000000000000001
  48. useSSO: true
  49. ##单点登录服务器地址
  50. SSOLoginUrl: http://10.201.7.30:9090/didsserver/login
  51. ##单点登录服务接口地址
  52. SSOValidateUrl: http://10.201.7.30:9090/didsserver/serviceValidate
  53. ##对接系统地址(ip:端口/上下文/login) 开发环境中, ip端口需要配置成代理的前端地址(请全程使用真实的ip 而不是localhost或者127.0.0.1,否则会导致登录失败)
  54. SSOServiceUrl: http://10.11.0.240:1645/approve-gateway/login
  55. accessType: 1
  56. ##单点登录服务接口地址
  57. webServiceUrl: http://10.201.7.30:9090/didsserver/webservices/
  58. jndi: JDBC/DIDS
  59. filterType: 1
  60. ##若匹配该地址,则无须过滤
  61. noFilterUrl: /api/v1/,/v1/,/v2/api-docs,services,hessian,commons,install.action,.xml,/install,/widgets-src/,/authorizationPage.html,/importAuthorizationFile.html,/license/LicenseManagerServlet,/authorizationFile/
  62. dcuc:
  63. casServerUrlPrefix: http://192.168.10.2:8877/sso
  64. serverName: http://10.11.0.240:1645 http://10.254.11.185:1645 http://10.11.0.200:1645
  65. ignorePattern: '/approve-core/api/*|/approve-core/v1/*|/approve-core/v2/*|/js/*|/img/*|/css/*|/api/*|/*.png|/rest/*|/webSocket/*|/oauthLogin/*|/authorizationPage.html|/importAuthorizationFile.html|/license/LicenseManagerServlet|/authorizationFile/|/auditsvr/|/authsvr/|/codelist/|/swagger-ui.html'
  66. appCode: YHZX0000000000000001
  67. security-access:
  68. jwt:
  69. enabled: false
  70. user-token-header-name: userToken
  71. dcuc:
  72. approve:
  73. bim-identity-url: https://127.0.0.1:8443/bim-server
  74. bim-login-id: app1
  75. bim-secret-key: app1@123
  76. huawei-login-filter-url: /approve-core/v2/api-docs,/approve-core/api/*,services,hessian,commons,install.action,.xml,/install,/widgets-src/,/authorizationPage.html,/importAuthorizationFile.html,/license/LicenseManagerServlet,/authorizationFile/