BeeHoleAuthEmail: ""
BeeHoleAuthCode: ""

# Configuration
xbuy:
  debug: false                             # Debug switch, when enabled: stack information will be output when an interface error occurs, default is true
  log:                                    # Global request log
    switch: false                          # Log switch, default is true
    queue: true                           # Whether to enable the queue, when enabled, queue information needs to be configured, default is true
    module: ["admin", "mall"]              # Modules to be recorded
    skipCode: []                          # Status codes not to be recorded, e.g.: ["0", "-1"]
  env: "dev"

# HTTP Server.
server:
  mainDomain:          "localhost:8299"
  domain:              "http://localhost:8299"  # not tail with /
  address:             ":8299"
  serverRoot:          "resource/public"
  openApiDoc:          false
  openapiPath:         "/openApi.json"
  swaggerPath:         "/doc"
  DumpRouterMap:       false
  logPath:             "./runtime/log/server"
  ErrorStack:          true                      # Whether to record stack information in the log when the server captures an exception. Default is true
  ErrorLogEnabled:     true                      # Whether to record exception log information in the log. Default is true
  errorLogPattern:     "error/{Y-m-d}.log"       # Exception error log file format. Default is "error-{Ymd}.log"
  accessLogEnabled:    false                      # Whether to record access logs. Default is false
  accessLogPattern:    "access/{Y-m-d}.log"      # Access log file format. Default is "access-{Ymd}.log"
  serverAgent:         "DHF HTTP Server"

# Global logging.
logger:
  level:     "all"
  stdout:    true
  headerPrint: false
  ctxKeys: []
  path:      "./runtime/log/logger"            # Log file path. Default is empty, which means closed, only output to the terminal
  file:      "{Y-m-d}.log"                     # Log file format. Default is "{Y-m-d}.log"
  exception:                                   # System exception log
    path:     "./runtime/log/exception"
    level:    "all"
    file:     "{Y-m-d}.log"
  queue:                                       # Message queue log
    path:     "./runtime/log/job"
    level:    "all"
    file:     "{Y-m-d}.log"

# JWT
jwt:
  version:        "1.0"
  expires:        "864000"
  sign:           "VxwDfgaIezTJTFObX7zZ7IlgRwKQLVh8"
  multiPort:      true

# JWT
jwtmall:
  version:        "1.0"
  expires:        "864000000"
  sign:           "XMeupAbn9kwBmjkvKRJNMjyDalmHI3cO"
  multiPort:      true

# Message Queue
queue:
  runWithMain: true                                # Whether to start with the main process, default is true
  driver: "redis"                                   # Queue driver, options: redis|rocketmq|kafka
  retry: 2                                          # Retry times
  multiComsumer: true                               # Whether to support creating multiple consumers
  groupName: "beehole"                              # MQ group name
  redis:
    address:        "192.168.3.57:6379"             # Redis server address, default is 127.0.0.1:6379
    db:             0                               # Specify the Redis database
    pass:           ""                              # Redis password
    timeout:        0                               # Queue timeout (s), 0 means never timeout, destroy when timeout
  kafka:
    topic_prefix: "beehole_"                        # Topic prefix
    consumer_prefix: "beehole_"                     # Consumer prefix
    address: "192.168.3.57:9092"                    # Kafka address+port
    version: "2.7.0.0"                              # Kafka exclusive configuration, default is 2.7.0.0

# Database.
database:
  logger:
    level:   "all"
    stdout:  true

  default:
    link:   "mysql:root:dhf@tcp(192.168.3.57:3306)/xbuy?charset=utf8mb4&parseTime=True&loc=UTC"
    debug:  false
    Prefix: ""

# Redis database configuration
redis:
  default:
    address:        "192.168.3.57:6379"
    db:             "0"
    pass:           ""
    idleTimeout:    "20"

