github.com/imyousuf/webhook-broker@v0.1.2/config/test-webhook-broker.cfg (about) 1 # This is for unit test purpose only 2 3 [rdbms] 4 dialect=sqlite3 5 connection-url=database.sqlite3 6 connxn-max-idle-time-seconds=10 7 connxn-max-lifetime-seconds=10 8 max-idle-connxns=300 9 max-open-connxns=1000 10 11 [http] 12 listener=:7080 13 read-timeout=2401 14 write-timeout=2401 15 16 [log] 17 filename=/var/log/webhook-broker.log 18 max-file-size-in-mb=20 19 max-backups=30 20 max-age-in-days=280 21 compress-backups=false 22 log-level=error 23 24 # Generic Webhook Broker config such as - Max message queue size, max workers, priority dispatcher on, retrigger base-endpoint 25 [broker] 26 max-message-queue-size=20000 27 max-workers=250 28 priority-dispatcher-enabled=true 29 retrigger-base-endpoint=http://localhost:7080 30 max-retry=7 31 rational-delay-in-seconds=30 32 retry-backoff-delays-in-seconds=15,30,60,120 33 recovery-workers-enabled=false 34 35 # Generic consumer configuration such as - Token Header name, User Agent, Consumer connection timeout 36 [consumer-connection] 37 token-header-name=X-Test-Consumer-Token 38 user-agent=Test User Agent 39 connection-timeout-in-seconds=300 40 41 # Preemptive Channel, Producer, Consumer setup 42 [initial-channels] 43 test-channel=Test Channel 44 test-channel2=Test Channel 2 45 46 [initial-producers] 47 test-producer=Test Producer 48 test-producer2=Test Producer 2 49 50 [initial-consumers] 51 test-consumer=http://imy13.us/webhook-receiver 52 test-consumer6=http://imy13.us/webhook-receiver3 53 test-consumer5=http://imy13.us/webhook-receiver2 54 test-consumer1=./relative-url 55 test-consumer2=not-a-url 56 test-consumer4=http://imy13.us/webhook-receiver1 57 58 # Support for preemptive token setup for the aboves 59 [initial-channel-tokens] 60 test-channel=test-channel-token 61 62 [initial-producer-tokens] 63 test-producer=test-producer-token 64 65 [test-consumer] 66 token=test-consumer-token 67 channel=test-channel 68 69 [test-consumer1] 70 token=test-consumer-token1 71 channel=test-channel 72 73 [test-consumer2] 74 token=test-consumer-token2 75 channel=test-channel 76 77 [test-consumer4] 78 channel=test-channel 79 80 [test-consumer5] 81 channel=non-existing-channel