mirror of
https://github.com/tiennm99/keepalive.git
synced 2026-07-16 12:16:31 +00:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
# Optional default interval shared by every service.
|
|
# Examples: 30s, 5m, 1h, 1h30m, 1.5h, or 90 for 90 seconds.
|
|
interval: 1m
|
|
counter_key: counter
|
|
|
|
services:
|
|
- adapter: redis
|
|
config:
|
|
url: redis://default@redis-a.example.com:6379
|
|
namespace: keepalive
|
|
|
|
- adapter: valkey
|
|
# Example: this service overrides root interval and counter_key.
|
|
interval: 30s
|
|
counter_key: valkey-counter
|
|
config:
|
|
url: valkey://default@valkey-a.example.com:6379
|
|
|
|
- adapter: postgresql
|
|
config:
|
|
url: postgresql://user:pass@postgres-a.example.com:5432/keepalive?sslmode=require
|
|
|
|
- adapter: mysql
|
|
config:
|
|
dsn: user:pass@tcp(mysql-a.example.com:3306)/keepalive
|
|
|
|
- adapter: mongodb
|
|
config:
|
|
uri: mongodb+srv://user:pass@mongo-a.example.com
|
|
database: keepalive
|
|
collection: counter
|
|
|
|
- adapter: couchbase
|
|
config:
|
|
connection_string: couchbases://couchbase-a.example.com
|
|
username: user
|
|
password: pass
|
|
bucket_name: keepalive
|
|
scope_name: _default
|
|
collection_name: _default
|
|
ready_timeout: 30s
|
|
# Optional. Set only when this user can create a missing bucket.
|
|
# bucket_ram_quota_mb: 128
|