2024-07-14 17:39:03 -04:00
|
|
|
db:
|
|
|
|
connect: 'postgres://postgres:password@localhost:5432/example'
|
2024-08-14 19:12:20 -04:00
|
|
|
cors:
|
|
|
|
allowedOrigins:
|
|
|
|
- 'http://localhost:*'
|
|
|
|
- 'https://stillbox.server'
|
2024-08-04 08:55:12 -04:00
|
|
|
auth:
|
|
|
|
jwtsecret: 'super secret string'
|
|
|
|
# this is the JWT cookie domain
|
|
|
|
domain: example.com
|
|
|
|
# this allows the JWT cookie to be served over plain HTTP only for these Host: header values
|
|
|
|
allowInsecureFor:
|
2024-08-15 13:28:03 -04:00
|
|
|
"localhost": true
|
2024-07-14 17:39:03 -04:00
|
|
|
listen: ':3050'
|
|
|
|
public: true
|
2024-10-17 10:00:23 -04:00
|
|
|
log:
|
|
|
|
# level logs at or above the specified level
|
|
|
|
# levels are trace, debug, info, warn, error, fatal, panic
|
|
|
|
# an entry without a file: property indicates stderr
|
|
|
|
- level: debug
|
|
|
|
- level: error
|
|
|
|
file: error.log
|
2024-10-18 15:21:42 -04:00
|
|
|
rateLimit:
|
|
|
|
enable: true
|
|
|
|
requests: 200
|
|
|
|
over: 2m
|
2024-10-25 15:34:59 -04:00
|
|
|
alerting:
|
|
|
|
enable: true
|
|
|
|
lookbackDays: 7
|
|
|
|
halfLife: 30m
|
|
|
|
recent: 2h
|
2024-10-31 09:09:58 -04:00
|
|
|
alertThreshold: 0.3
|
2024-10-31 00:10:53 -04:00
|
|
|
renotify: 30m
|
|
|
|
notify:
|
|
|
|
- provider: slackwebhook
|
2024-11-07 23:17:16 -05:00
|
|
|
# subjectTemplate: "Stillbox Alert ({{ highest . }})"
|
|
|
|
# bodyTemplate: |
|
|
|
|
# {{ range . -}}
|
|
|
|
# {{ .TGName }} is active with a score of {{ f .Score.Score 4 }}! ({{ f .Score.RecentCount 0 }}/{{ .Score.Count }} recent calls)
|
|
|
|
#
|
|
|
|
# {{ end -}}
|
2024-10-31 00:10:53 -04:00
|
|
|
config:
|
|
|
|
webhookURL: "http://somewhere"
|
2024-11-18 18:31:17 -05:00
|
|
|
# configure upstream relays here
|
|
|
|
relay:
|
|
|
|
# `url` is the root of the instance
|
|
|
|
# - url: 'http://some.host:3051/'
|
|
|
|
# apiKey: aaaabbbb-cccc-dddd-eeee-ffff11112222
|
|
|
|
# `required` specifies whether we should report failure (i.e. HTTP 500 for rdio-http) to the source
|
|
|
|
# if the relay call submission fails
|
|
|
|
# required: false
|