-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotifyd.toml.example
More file actions
100 lines (83 loc) · 3.78 KB
/
Copy pathnotifyd.toml.example
File metadata and controls
100 lines (83 loc) · 3.78 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[server]
port = 3400
jwt_secret = "change-me-in-production-use-a-long-random-string"
[database]
url = "postgres://notifyd:password@localhost:5432/notifyd"
max_connections = 10
[worker]
poll_interval_ms = 500
batch_size = 50
max_attempts = 3
# ─── Email connector ─────────────────────────────────────────────────
# Provider: "resend" or "agentmail"
# Resend example:
[connectors.email]
provider = "resend"
api_key = "re_xxx"
from = "notifications@yourdomain.com"
from_name = "Mon App"
# AgentMail example (comment out Resend section and use this instead):
# [connectors.email]
# provider = "agentmail"
# api_key = "am_xxx" # AgentMail API Bearer token
# from = "myapp@agentmail.to" # AgentMail inbox address
# from_name = "Mon App"
# ─── SMS connector ────────────────────────────────────────────────────
# Provider: "twilio" or "telnyx"
# Twilio example:
[connectors.sms]
provider = "twilio"
account_sid = "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
auth_token = "your_auth_token"
from = "+33600000000"
# Telnyx example (comment out Twilio section and use this instead):
# [connectors.sms]
# provider = "telnyx"
# api_key = "KEY01xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# messaging_profile_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # optional
# from = "+33600000000"
# ─── WhatsApp connector (Telnyx) ──────────────────────────────────────
# Uses POST /v2/messages/whatsapp. Free-form text only works inside the
# 24h conversation window; outside it, pass a Meta-approved template via
# the job metadata: { "whatsapp": { "template": { "name": "...", "language": {"code": "en_US"} } } }
# Can also be set via env: TELNYX_WHATSAPP_API_KEY (or TELNYX_API_KEY) + WHATSAPP_FROM.
# [connectors.whatsapp]
# provider = "telnyx"
# api_key = "KEY01xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# messaging_profile_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # optional
# from = "+33600000000" # WhatsApp-enabled number
# ─── Push connector ───────────────────────────────────────────────────
# Web Push is the standards-based path for browser/PWA push, including
# iPhone/iPad home-screen web apps. Generate VAPID keys once and keep the
# private key secret.
#
# openssl ecparam -name prime256v1 -genkey -noout -out private.pem
# openssl ec -in private.pem -pubout -outform DER | tail -c 65 | base64 | tr '/+' '_-' | tr -d '\n'
[connectors.push]
vapid_private_key_pem = """
-----BEGIN EC PRIVATE KEY-----
...
-----END EC PRIVATE KEY-----
"""
vapid_subject = "mailto:ops@yourdomain.com"
# Optional legacy Android/native push path:
# fcm_server_key = "AAAA..."
# ─── Projects ────────────────────────────────────────────────────────
# One section per project. api_key is what clients send in X-Api-Key header.
[projects.square]
api_key = "sk_square_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
channels = ["email", "sms", "in_app"]
[projects.clozup]
api_key = "sk_clozup_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
channels = ["email", "in_app"]
# Optional per-project sender identity (email channel):
# from_email = "noreply@yourdomain.com"
# from_name = "Your Brand"
# Falls back to [connectors.email] from/from_name when unset.
[projects.helmai]
api_key = "sk_helmai_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
channels = ["email", "sms", "in_app", "push"]
[projects.craie]
api_key = "sk_craie_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
channels = ["email", "in_app"]
# Add more projects as needed...