# This file is generated. Do not edit.
# The configs are results of online config changes from UI/API/CLI.
# To persist configs in this file, copy the content to etc/base.hocon.

actions {
  http {
    emq_webhook_WH_D {
      connector = emq_webhook_WH_D
      created_at = 1774745445728
      enable = true
      last_modified_at = 1774745445728
      parameters {
        headers {
          accept = "application/json"
          cache-control = "no-cache"
          connection = "keep-alive"
          content-type = "application/json"
          keep-alive = "timeout=5"
        }
        max_retries = 2
        method = post
      }
      resource_opts {
        health_check_interval = "15s"
        inflight_window = 100
        max_buffer_bytes = "256MB"
        query_mode = async
        request_ttl = "45s"
        worker_pool_size = 16
      }
      tags = []
    }
  }
}

authentication = [
  {
    backend = http
    body = {
      clientid = "${clientid}"
      password = "${password}"
      username = "${username}"
    }
    connect_timeout = "15s"
    enable = true
    enable_pipelining = 100
    headers = {
      accept = "application/json"
      cache-control = "no-cache"
      connection = "keep-alive"
      content-type = "application/json"
      keep-alive = "timeout=30, max=1000"
    }
    mechanism = password_based
    method = post
    pool_size = 8
    request_timeout = "5s"
    ssl = {
      enable = false
      verify = verify_peer
    }
    url = "http://127.0.0.1:3001/emq_auth"
  }
]

connectors {
  http {
    emq_webhook_WH_D {
      connect_timeout = "15s"
      enable = true
      enable_pipelining = 100
      headers = {
        content-type = "application/json"
      }
      pool_size = 8
      pool_type = random
      resource_opts {
        health_check_interval = "15s"
        start_after_created = true
        start_timeout = "5s"
      }
      ssl = {
        ciphers = []
        depth = 10
        enable = false
        hibernate_after = "5s"
        log_level = notice
        reuse_sessions = true
        secure_renegotiate = true
        verify = verify_none
        versions = [
          "tlsv1.3",
          "tlsv1.2"
        ]
      }
      tags = []
      url = "http://127.0.0.1:3001/emq_webhook"
    }
  }
}

log {
  console {}
  file {}
}

rule_engine {
  ignore_sys_message = true
  jq_function_default_timeout = "10s"
  rules {
    emq_webhook_WH_D {
      actions = [
        "http:emq_webhook_WH_D"
      ]
      description = "事件监控"
      enable = true
      metadata = {
        created_at = 1774745445745
        last_modified_at = 1774745445745
      }
      sql = "SELECT * FROM \"$events/client_connack\",\"$events/client_disconnected\""
    }
  }
}

telemetry {
  enable = false
}