-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.toml
More file actions
82 lines (64 loc) · 2.37 KB
/
config.example.toml
File metadata and controls
82 lines (64 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# mostro-watchdog configuration
# Copy this file to config.toml and fill in your values.
[mostro]
# Your Mostro daemon's Nostr public key (hex or npub format)
# Find this in your mostrod configuration
pubkey = "npub1..."
[nostr]
# Nostr relays to connect to (use the same relays as your mostrod)
relays = [
"wss://relay.mostro.network",
"wss://relay.damus.io",
]
[telegram]
# Bot token from @BotFather (https://t.me/BotFather)
# 1. Open Telegram and search for @BotFather
# 2. Send /newbot and follow the instructions
# 3. Copy the token here
bot_token = "123456789:ABCdefGHIjklMNOpqrsTUVwxyz"
# Chat ID where alerts will be sent
# This can be a group, channel, or personal chat ID
# To get a group/channel ID:
# 1. Add your bot to the group/channel
# 2. Send a message in the group
# 3. Visit: https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates
# 4. Find the "chat":{"id": ...} value
chat_id = -1001234567890
# Alert configuration (optional)
# Enable/disable specific types of dispute alerts
[alerts]
# New disputes (default: true)
initiated = true
# Dispute taken by solver (default: true)
in_progress = true
# Dispute resolved with seller refund (default: true)
seller_refunded = true
# Dispute settled with payment to buyer (default: true)
settled = true
# Dispute released by seller (default: true)
released = true
# Other/unknown status changes (default: true)
other = true
# Health check and monitoring configuration (optional)
[health]
# Enable periodic heartbeat notifications (default: false)
# Set to true if you want hourly "system online" messages in your chat
heartbeat_enabled = false
# Send heartbeat every N seconds (default: 3600 = 1 hour)
heartbeat_interval = 3600
# Check Nostr relay connections periodically (default: true)
check_relays = true
# Relay connection timeout in seconds (default: 30)
relay_timeout = 30
# Alert if no events received for N seconds (default: 7200 = 2 hours)
# Set to 0 to disable event silence alerts
event_alert_threshold = 7200
# Enable HTTP health status endpoint (default: false)
# Useful for external monitoring systems (uptime checkers, k8s liveness probes)
enable_http_endpoint = false
# HTTP endpoint port (default: 8080)
# Health endpoint will be available at http://localhost:8080/health
http_port = 8080
# HTTP endpoint bind address (default: "127.0.0.1")
# Set to "0.0.0.0" when running in Docker to allow port mapping
# http_bind = "0.0.0.0"