ruwebframe 0.1.8

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation

software:
  env: ${SOFTWARE_ENV:test}
  webPrefix: "/mall/v3"
  projectName: admin
  logLevel: DEBUG
  corp: ${CORP:akunlong.top}
  author: raymond@163.com

etcd:
  server:
    hosturl: ${ETCD_HOSTURL:ali.akunlong.top:2379}

nats:
  url: ${NATS_URL:nats://huawei.akunlong.top:4222}
  #url: "nats://192.168.27.17:4222,nats://192.168.27.18:4222,nats://192.168.27.19:4222"
  timeout: 10 #s
  subscribe:
    topicSync: GeneralEsSync.*
    topicAsync: GeneralEsAsync.*

web:
  server:
    name: ${WEB_SERVER_HOST:web.webserver.com}
    port: "301"
    ver: latest
    ifBackend: "false"  #是否后台
  client:
    name: ${WEB_CLIENT_HOST:learnentity.pdf.com}
    testUrl: #${ICHUB_TESTURL:http://localhost:301/website/v3}
    enableTestUrl: "false"
    webTimeout: ${WEB_TIMEOUT:30}
  swagger:
    enable: ${SWAGGER_ENABLE:true}
    host: ${SWAGGER_HOST:localhost:301/website/v3}
    basePath: /
    ver: v1.0
    title: ${SWAGGER_TITLE:有芯服务-WebServer}

  esclient:
    name: web.esserver.com
    #testUrl: ${WEB_ESCLIENT_TESTURL:http://192.168.27.144:88} #dev
    testUrl: ${WEB_ESCLIENT_TESTURL:http://192.168.4.111:88} #test
    #testUrl: ${WEB_ESCLIENT_TESTURL:http://localhost:88}
    webTimeout: "30"
  ruleclient:
    name: web.ruleserver.com
    testUrl: ${WEB_RULECLIENT_TESTURL:http://localhost:89}
    webTimeout: 30
  dbclient:
    name: web.dbserver.com
    testUrl: ${WEB_ESCLIENT_TESTURL:http://localhost:91}
    webTimeout: ${WEB_TIMEOUT:30}
  statclient:
    name: web.statserver.com
    testUrl: ${WEB_STATCLIENT_TESTURL:http://localhost:90}
    webTimeout: 30
  wso2agent:
    name: web.wso2gent.com
    testUrl: ${WEB_WSO2AGENT_TESTURL:http://localhost:211}
    webTimeout: 30
es:
  enable: ${ES_ENABLE:true}
  url: ${ES_URL:http://192.168.4.111:9200,http://192.168.4.111:9200,http://192.168.4.111:9200}
  username: ${ES_USERNAME:elastic}
  password: ${ES_PASSWORD:enc(8CfGuLQ79iK6e6+UU/yXiA==)}
  sniffEnabled: "false" # 是否设置嗅探器
  healthcheckInterval: 10 #s # 多久检查一次集群健康状态

rpc:
  serverName: grpcweb.admin.com
  serverPort: ${WEBSITE_RPC_PORT:1201}
  version: "latest"
redis:
  enable: true
  db: 8
  addr: 192.168.27.27:7000,192.168.27.35:7000,192.168.27.49:7000,192.168.27.27:7100,192.168.27.35:7100,192.168.27.49:7100  #addr: ${REDIS_HOST:huawei.akunlong.top:6379}
  password: "XOBRB1YmAgxW0Jkc81WcauYVWn8UA4fgZxK7pca0PaOjCQ/25J2eb3GENF7gkfEzrkvHC5+uUmlNV9nH"

datasource:
  dbtype: mysql
  dbname: ${DB_NAME:hrms}
  host: ${DB_HOST:hauwei.akunlong.top}
  port: ${DB_PORT:13306}
  username: ${DB_USER:root}
  password: ${DB_PASSWORD:enc(s7JSA0+ss=)}
  charset: utf8

gorm:
  debug: ${DB_DEBUG:true}
  dbType: ${DB_TYPE:mysql}
  enable: ${DB_ENABLE:true}
  maxIdletime: 900 #s
  maxLifetime: 7200 #s
  maxOpenConns: 150
  maxIdleConns: 50

hrms:
  DbConnName: hrms
  dbtype: mysql
  dbname: ${DB_NAME:hrms}
  host: ${DB_HOST:hw.akunlong.top}
  port: ${DB_PORT:13306}
  username: ${DB_USER:root}
  password: ${DB_PASSWORD:1}
  charset: utf8
dongxw:
  dbtype: mysql
  dbname: ${DB_NAME:dongxw}
  host: ${DB_HOST:huawei.akunlong.top}
  port: ${DB_PORT:13306}
  username: ${DB_USER:root}
  password: ${DB_PASSWORD:enc(s7JSA0+1=)}
  charset: utf8
platform:
  DbConnName: platform
  dbtype: mysql
  dbname: ${DB_NAME:platform}
  host: ${DB_HOST:ali.akunlong.top}
  port: ${DB_PORT:13306}
  username: ${DB_USER:root}
  password: ${DB_PASSWORD:root}
  charset: utf8
ruoyi:
  DbConnName: ruoyi
  dbtype: mysql
  dbname: ${DB_NAME:ruoyi-vue}
  host: ${DB_HOST:huawei.akunlong.top}
  port: ${DB_PORT:13306}
  username: ${DB_USER:root}
  password: ${DB_PASSWORD:enc(s7JSA0+NWkHfMcRFTLAlCvIJlzZmLZrW1RN5TJ9IrVA=)}
  charset: utf8

ipfs:
  upload: "http://192.168.27.36:5001"
  download: "http://192.168.27.36:8080,http://192.168.27.37:8080,http://192.168.27.38:8080"

factroy:
  author: leijmdas@163.com
  int2string: true
  pkgNow: git.ichub.com/general/gocode/mysql/
  pkgNew: admin-repo/code/postgres/rudb/