ruwebframe 0.1.5

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

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

etcd:
  server:
    hosturl: ${ETCD_HOSTURL:192.168.1.153:2379}

nats:
  url: ${NATS_URL:nats://192.168.1.153:4222}
  timeout: 10 #s


redis:
  enable: true
  db: 1
  addr: "192.168.1.153:26379"
  password: "123456"

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

datasource:
  dbtype: mysql
  dbname: ${DB_NAME:platform}
  host: ${DB_HOST:ali.akunlong.top}
  port: ${DB_PORT:13306}
  username: ${DB_USER:root}
  password: ${DB_PASSWORD:root}
  sslmode: ${DB_SSLMODE:disable}
  charset: utf8
rpc:
  enable: false
  serverName: grpcweb.admin.com
  serverPort: ${WEBSITE_RPC_PORT:1201}
  version: "latest"
web:
  server:
    name: ${WEB_SERVER_HOST:web.webserver.com}
    port: "8098"
    title: ${WEB_SERVER_TITLE:运营中心-WebServer}
    ver: latest
    ifBackend: false  #是否后台
    rateLimits:
      - limitType: "server"
        burst: 500
        qps: 100
        cacheSize: 1
      - limitType: "ip"
        burst: 50
        qps: 10
        cacheSize: 2048
  client:
    name: ${WEB_CLIENT_HOST:learnentity.pdf.com}
    testUrl: #${ICHUB_TESTURL:http://localhost:301/admin/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}

  dbclient:
    name: web.dbserver.com
    testUrl: ${WEB_ESCLIENT_TESTURL:http://localhost:91}
    webTimeout: ${WEB_TIMEOUT:30}

postgres:
  dbtype: postgres
  dbname: ${DB_NAME:train}
  host: ${DB_HOST:192.168.1.153}
  port: ${DB_PORT:5432}
  username: ${DB_USER:postgres}
  password: ${DB_PASSWORD:enc(ap3bkQhgwYOYarqeXA0wTJqTTAA/CPJu2FJAyIIDUKI=)}
  sslmode: ${DB_SSLMODE:disable}
  charset: utf8