settings.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. settings:
  2. application:
  3. # dev开发环境 test测试环境 prod线上环境
  4. mode: dev
  5. # 服务器ip,默认使用 0.0.0.0
  6. host: 0.0.0.0
  7. # 服务名称
  8. name: config-center-server
  9. # 端口号
  10. port: 7601 # 服务端口号
  11. readtimeout: 1
  12. writertimeout: 2
  13. # 数据权限功能开关
  14. enabledp: false
  15. logger:
  16. # 日志存放路径
  17. path: ./logs
  18. # 日志输出,file:文件,default:命令行,其他:命令行
  19. type: file
  20. stdout: false #控制台日志,启用后,不输出到文件
  21. # 日志等级, trace, debug, info, warn, error, fatal
  22. level: trace
  23. # 数据库日志开关
  24. enableddb: false
  25. jwt:
  26. # token 密钥,生产环境时及的修改
  27. secret: go-admin
  28. # token 过期时间 单位:秒
  29. timeout: 3600
  30. database:
  31. # 数据库类型 mysql,sqlite3, postgres
  32. driver: mysql
  33. # 数据库连接字符串 mysql 缺省信息 charset=utf8&parseTime=True&loc=Local&timeout=1000ms
  34. source: root:1234@(127.0.0.1:3306)/config_center?charset=utf8&parseTime=True&loc=Asia%2FShanghai&timeout=1000ms
  35. # databases:
  36. # 'locaohost:8000':
  37. # driver: mysql
  38. # # 数据库连接字符串 mysql 缺省信息 charset=utf8&parseTime=True&loc=Local&timeout=1000ms
  39. # source: user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local&timeout=1000ms
  40. # registers:
  41. # - sources:
  42. # - user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local&timeout=1000ms
  43. gen:
  44. # 代码生成读取的数据库名称
  45. dbname: dbname
  46. # 代码生成是使用前端代码存放位置,需要指定到src文件夹,相对路径
  47. frontpath: ../go-admin-ui/src
  48. extend: # 扩展项使用说明
  49. demo:
  50. name: data
  51. cache:
  52. # redis:
  53. # addr: 127.0.0.1:6379
  54. # password: xxxxxx
  55. # db: 2
  56. # key存在即可
  57. memory: ''
  58. queue:
  59. memory:
  60. poolSize: 100
  61. # redis:
  62. # addr: 127.0.0.1:6379
  63. # password: xxxxxx
  64. # producer:
  65. # streamMaxLength: 100
  66. # approximateMaxLength: true
  67. # consumer:
  68. # visibilityTimeout: 60
  69. # bufferSize: 100
  70. # concurrency: 10
  71. # blockingTimeout: 5
  72. # reclaimInterval: 1
  73. locker:
  74. redis:
  75. common:
  76. runModeString: dev
  77. serviceID: hx-admin-server_1
  78. hostIP: 192.168.31.230
  79. hostName: Saturn
  80. static:
  81. employeeImportTemplate: ./static/user_more_import.xlsx
  82. ding:
  83. keyword: API
  84. debugErrorAlertURL: https://oapi.dingtalk.com/robot/send?access_token=085dfb81451f9e1d134cda72f87f6803c6e54335ea448bad4dcb96de8b4db1fd
  85. apollo:
  86. portalURL: http://192.168.31.230:4379
  87. orgID: TEST1
  88. orgName: 样例部门1
  89. ownerName: apollo
  90. adminUserName: apollo
  91. adminPassword: admin
  92. cookiePath: ./config/cookies
  93. env: DEV
  94. cluster: default
  95. log:
  96. logFileName: ./logs/default.log
  97. maxSizeInMB: 50
  98. maxAgeInDays: 30
  99. level: debug
  100. constraintExecuteEngineConfig:
  101. python3Path: python3
  102. pythonScriptPrefixPath: ./scripts/base.py
  103. tempDir: ./static/scripts