application.properties 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #项目的全局配置==============>
  2. spring.application.name=v1-alam-kpr-proxy-center
  3. # 项目contextPath
  4. server.servlet.context-path= /
  5. # 错误页,指定发生错误时,跳转的URL。请查看BasicErrorController源码便知
  6. server.error.path= /
  7. # 服务端口
  8. server.port=9999
  9. #global.lan.test.log=true
  10. #spring boot 2.0在开启https时,若运行环境安装openssl后将以https-openssl模式运行,若未安装openssl时将以https-jsse模式运行
  11. #server.ssl.enabled=true
  12. #server.ssl.key-store=classpath:alam_server.pfx
  13. #server.ssl.key-store-password=Tri12345678
  14. #server.ssl.keyStoreType=PKCS12
  15. #server.ssl.key-alias=alias
  16. # session最大超时时间(秒钟),默认为30
  17. server.servlet.session.timeout=60s
  18. # 最大链接超时时间
  19. server.connection-timeout=60s
  20. # 是否打开 undertow 日志,默认为 false
  21. server.undertow.accesslog.enabled=false
  22. # 设置访问日志所在目录
  23. server.undertow.accesslog.dir=./trilog
  24. # 指定工作者线程的 I/0 线程数,默认为 2 或者 CPU 的个数
  25. server.undertow.io-threads=4
  26. # 指定工作者线程个数,默认为 I/O 线程个数的 8 倍
  27. server.undertow.worker-threads=400
  28. # 设置缓冲区大小
  29. server.undertow.buffer-size=1024
  30. # 使用直接内存
  31. server.undertow.direct-buffers=true
  32. #连接超时时间
  33. server.undertow.connection-timeout=60s
  34. #设置HTTP POST请求的最大内容大小,以适应可能的文件上传或大批量数据提交
  35. server.undertow.max-http-post-size=0
  36. ## Freemarker 配置
  37. ## 文件配置路径
  38. spring.freemarker.template-loader-path=classpath:/templates/
  39. ## 对于静态资源建议开启缓存
  40. spring.freemarker.cache=true
  41. spring.freemarker.charset=UTF-8
  42. spring.freemarker.check-template-location=true
  43. spring.freemarker.content-type=text/html
  44. spring.freemarker.expose-request-attributes=true
  45. spring.freemarker.expose-session-attributes=true
  46. spring.freemarker.request-context-attribute=request
  47. spring.freemarker.suffix=.ftl
  48. #设定静态文件路径,js,css等
  49. spring.mvc.static-path-pattern=/static/**
  50. # 本服务所在的部署机器的索引编号
  51. global.machine.index=0
  52. # 本服务在部署机器上的服务索引编号
  53. global.service.index=5
  54. # 本服务的ID
  55. global.server.id=kpr.proxy.v100
  56. #===================Redis配置文件路径====================
  57. #global.redis.config.path=./redis.properties
  58. #===================数据库配置===========================
  59. global.sql.config.path=./sql.properties
  60. #============全局配置参数===================
  61. #是否启用本地缓存策略
  62. global.local.cache.switch=true
  63. #是否开启license验证
  64. global.license.check.switch=false
  65. #=============内部运维账号配置===================
  66. global.internal.operator.account=TriCooperation
  67. global.internal.operator.password=$2b$10$Scz7AoeOTUB69piABNLOEepFU7OesRDRStP43g9r7QFw0Go7KTo4u
  68. cloud.proxy.address.base=https://140.246.183.164:9000/
  69. cloud.proxy.address.task=https://140.246.183.164:9000/