123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- # 网管 服务配置
- server.port = 8901
- # 注册是使用真实IP
- eureka.instance.preferIpAddress = true
- # 开启调试信息
- endpoints.sensitive = true
- endpoints.info.enabled = true
- endpoints.restart.enabled = false
- endpoints.shutdown.enabled = false
- endpoints.health.enabled = true
- endpoints.flyway.enabled = false
- endpoints.logfile.enabled = true
- #log级别
- logging.level.root = INFO
- logging.level.cn.efunbox.afw.web.mvc.interceptor.AbstractRequestBodyInterceptor = DEBUG
- logging.level.cn.efunbox.api.impl = DEBUG
- #此配置建议只试用开发和测试环境
- #心跳间隔时间,默认是30秒
- eureka.instance.leaseRenewalIntervalInSeconds = 30
- #最后一次心跳时间后leaseExpirationDurationInSeconds秒就认为是下线了,默认是90秒
- eureka.instance.leaseExpirationDurationInSeconds = 90
- ## eureka客户端配置
- # 是否启用 eureka
- eureka.client.enabled = true
- # eureka 地址
- # 非安全地址
- eureka.client.serviceUrl.defaultZone = http://eureka.efunbox.cn:8761/eureka/
- # 当前服务 是否注册到eureka
- eureka.client.register-with-eureka = false
- #是否eureka服务器获取注册信息
- eureka.client.fetch-registry = true
- ## redis 配置
- spring.redis.host=192.168.1.86
- spring.redis.port=6379
- spring.redis.password=otttest
- spring.redis.timeout=3000
- spring.redis.pool.max-idle=8
- spring.redis.pool.min-idle=0
- spring.redis.pool.max-active=8
- spring.redis.pool.max-wait=-1
- spring.redis.key.prefix= web.cms
- spring.cloud.loadbalancer.retry.enabled=true
- #断路器的超时时间,断路器的超时时间需要大于ribbon的超时时间,不然不会触发重试。
- hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=100000
- #ribbon请求连接的超时时间
- ribbon.ConnectTimeout=2500
- #请求处理的超时时间
- ribbon.ReadTimeout=3000
- #对所有操作请求都进行重试
- ribbon.OkToRetryOnAllOperations=true
- #对当前实例的重试次数
- ribbon.MaxAutoRetries=1
- #对下个实例的重试次数
- ribbon.MaxAutoRetriesNextServer=1
- ali.oss.endpoint=oss-cn-beijing.aliyuncs.com
- ali.oss.accessKeyId=LTAIUFvd17IXLBQ4
- ali.oss.accessKeySecret=YEm1VebbntRIGmV8s8N33LQfOoC2sA
- ########################################################
- ###THYMELEAF (ThymeleafAutoConfiguration)
- ########################################################
- spring.thymeleaf.prefix=classpath:/templates/
- spring.thymeleaf.suffix=.html
- spring.thymeleaf.mode=HTML5
- spring.thymeleaf.encoding=UTF-8
- spring.thymeleaf.content-type=text/html
- # set to false for hot refresh
- spring.thymeleaf.cache=false
- #kafka配置
- kafka.host=192.168.1.18:9092
|