github.com/imyousuf/webhook-broker@v0.1.2/config/defaultconfig.go (about)

     1  package config
     2  
     3  // DefaultConfiguration is the configuration that will be in effect if no configuration is loaded from any of the expected locations
     4  const DefaultConfiguration = `[rdbms]
     5  dialect=sqlite3
     6  connection-url=webhook-broker.sqlite3?_foreign_keys=on
     7  connxn-max-idle-time-seconds=0
     8  connxn-max-lifetime-seconds=0
     9  max-idle-connxns=30
    10  max-open-connxns=100
    11  [http]
    12  listener=:8080
    13  read-timeout=240
    14  write-timeout=240
    15  [log]
    16  filename=
    17  max-file-size-in-mb=200
    18  max-backups=3
    19  max-age-in-days=28
    20  compress-backups=true
    21  log-level=debug
    22  [broker]
    23  max-message-queue-size=10000
    24  max-workers=200
    25  priority-dispatcher-enabled=true
    26  retrigger-base-endpoint=http://localhost:8080
    27  max-retry=5
    28  rational-delay-in-seconds=2
    29  retry-backoff-delays-in-seconds=5,30,60
    30  recovery-workers-enabled=true
    31  [consumer-connection]
    32  token-header-name=X-Broker-Consumer-Token
    33  user-agent=Webhook Message Broker
    34  connection-timeout-in-seconds=30
    35  [initial-channels]
    36  sample-channel=Sample Channel
    37  [initial-producers]
    38  sample-producer=Sample Producer
    39  [initial-consumers]
    40  sample-consumer=http://sample-endpoint/webhook-receiver
    41  [initial-channel-tokens]
    42  sample-channel=sample-channel-token
    43  [initial-producer-tokens]
    44  sample-producer=sample-producer-token
    45  [sample-consumer]
    46  token=sample-consumer-token
    47  channel=sample-channel
    48  `