web-customer-local.properties 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # 网管 服务配置
  2. server.port = 8902
  3. # 注册是使用真实IP
  4. eureka.instance.preferIpAddress = true
  5. # 开启调试信息
  6. endpoints.sensitive = true
  7. endpoints.info.enabled = true
  8. endpoints.restart.enabled = false
  9. endpoints.shutdown.enabled = false
  10. endpoints.health.enabled = true
  11. endpoints.flyway.enabled = false
  12. endpoints.logfile.enabled = true
  13. #log级别
  14. logging.level.root = INFO
  15. logging.level.cn.efunbox.afw.web.mvc.interceptor.AbstractRequestBodyInterceptor = DEBUG
  16. logging.level.cn.efunbox.api.impl = DEBUG
  17. #此配置建议只试用开发和测试环境
  18. #心跳间隔时间,默认是30秒
  19. eureka.instance.leaseRenewalIntervalInSeconds = 30
  20. #最后一次心跳时间后leaseExpirationDurationInSeconds秒就认为是下线了,默认是90秒
  21. eureka.instance.leaseExpirationDurationInSeconds = 90
  22. ## eureka客户端配置
  23. # 是否启用 eureka
  24. eureka.client.enabled = true
  25. # eureka 地址
  26. # 非安全地址
  27. eureka.client.serviceUrl.defaultZone = http://127.0.0.1:8821/eureka/
  28. # 当前服务 是否注册到eureka
  29. eureka.client.register-with-eureka = true
  30. #是否eureka服务器获取注册信息
  31. eureka.client.fetch-registry = true
  32. ## redis 配置
  33. #spring.redis.host=192.168.1.86
  34. #spring.redis.port=6379
  35. #spring.redis.password=otttest
  36. spring.redis.host=192.168.1.151
  37. spring.redis.port=6379
  38. spring.redis.password=
  39. spring.redis.timeout=3000
  40. spring.redis.pool.max-idle=8
  41. spring.redis.pool.min-idle=0
  42. spring.redis.pool.max-active=8
  43. spring.redis.pool.max-wait=-1
  44. spring.redis.key.prefix= web.cms
  45. spring.cloud.loadbalancer.retry.enabled=true
  46. #断路器的超时时间,断路器的超时时间需要大于ribbon的超时时间,不然不会触发重试。
  47. hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=100000
  48. #ribbon请求连接的超时时间
  49. ribbon.ConnectTimeout=2500
  50. #请求处理的超时时间
  51. ribbon.ReadTimeout=3000
  52. #对所有操作请求都进行重试
  53. ribbon.OkToRetryOnAllOperations=true
  54. #对当前实例的重试次数
  55. ribbon.MaxAutoRetries=1
  56. #对下个实例的重试次数
  57. ribbon.MaxAutoRetriesNextServer=1
  58. ali.oss.picture=//efunimgs.oss-cn-beijing.aliyuncs.com/
  59. ali.oss.video=http://efunvideo.ai160.com/vs2m
  60. ali.oss.endpoint=oss-cn-beijing.aliyuncs.com
  61. ali.oss.accessKeyId=LTAIUFvd17IXLBQ4
  62. ali.oss.accessKeySecret=YEm1VebbntRIGmV8s8N33LQfOoC2sA
  63. ########################################################
  64. ###THYMELEAF (ThymeleafAutoConfiguration)
  65. ########################################################
  66. spring.thymeleaf.prefix=classpath:/templates/
  67. spring.thymeleaf.suffix=.html
  68. spring.thymeleaf.mode=HTML5
  69. spring.thymeleaf.encoding=UTF-8
  70. spring.thymeleaf.content-type=text/html
  71. # set to false for hot refresh
  72. spring.thymeleaf.cache=false