packages feed

ngx-export-healthcheck-1.6.4: ngx-export-healthcheck.cabal

name:                  ngx-export-healthcheck
version:               1.6.4
synopsis:              Active health checks and monitoring of Nginx upstreams
description:           Active health checks and monitoring of Nginx upstreams.
        .
        This is a part of <https://github.com/lyokha/nginx-healthcheck-plugin>.
        Custom libraries are required to be linked against C module
        /ngx_healthcheck_plugin/.
homepage:              http://github.com/lyokha/nginx-healthcheck-plugin
license:               BSD3
license-file:          LICENSE
extra-doc-files:       Changelog.md
author:                Alexey Radkov <alexey.radkov@gmail.com>
maintainer:            Alexey Radkov <alexey.radkov@gmail.com>
stability:             stable
copyright:             2022-2026 Alexey Radkov
category:              Network
build-type:            Simple
cabal-version:         1.20

source-repository head
  type:                git
  location:            https://github.com/lyokha/nginx-healthcheck-plugin.git

flag SnapStatsServer
  description:         Build Snap server to collect stats.

flag HealthcheckHttps
  description:         Support secure connections to endpoints.

library
  default-language:    Haskell2010
  build-depends:       base >= 4.8 && < 5
                     , ngx-export >= 1.7.1
                     , http-client
                     , http-client-tls >= 0.3.4
                     , http-client-brread-timeout
                     , http-types
                     , containers
                     , bytestring
                     , text
                     , aeson >= 1.0.0.0
                     , time >= 1.9.1
                     , async

  if flag(SnapStatsServer)
    build-depends:     snap-core
                     , snap-server
                     , enclosed-exceptions
    cpp-options:      -DSNAP_STATS_SERVER

  if flag(HealthcheckHttps)
    build-depends:     http-client-tls >= 0.3.4
                     , unordered-containers
                     , data-default-class
                     , crypton-connection
                     , crypton-x509
                     , crypton-x509-store
                     , crypton-x509-system
                     , crypton-x509-validation
                     , tls >= 1.4.0
    cpp-options:      -DHEALTHCHECK_HTTPS


  exposed-modules:     NgxExport.Healthcheck
  other-modules:       NgxExport.Healthcheck.Types

  ghc-options:        -Wall