forked from aswinayyolath/agent-mesh-sre
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.local.example
More file actions
59 lines (53 loc) · 3.34 KB
/
.env.local.example
File metadata and controls
59 lines (53 loc) · 3.34 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
# ── Agent Mesh SRE — Environment Config ──────────────────────────────────────
# Copy this file to .env.local and fill in your credentials.
# The app works in MOCK mode without any credentials — all scenarios run on the
# in-memory event bus. Set KAFKA_MODE=REAL and SMTP_* to connect real services.
# ── Kafka mode ────────────────────────────────────────────────────────────────
# MOCK — in-memory simulation only (default, no Kafka broker needed)
# REAL — connect to a real Kafka broker (Confluent Cloud or local)
KAFKA_MODE=MOCK
# ── Confluent Cloud (required when KAFKA_MODE=REAL) ───────────────────────────
#
# How to get these values:
# 1. Go to https://confluent.cloud → your Cluster → Cluster Settings
# 2. Copy the Bootstrap server URL (e.g. pkc-xxxxx.us-east-1.aws.confluent.cloud:9092)
# 3. Go to API Keys → Create Key → Global access
# 4. Copy the Key (= KAFKA_SASL_USERNAME) and Secret (= KAFKA_SASL_PASSWORD)
#
KAFKA_BOOTSTRAP_SERVERS=pkc-xxxxx.us-east-1.aws.confluent.cloud:9092
KAFKA_SASL_USERNAME=your-confluent-api-key
KAFKA_SASL_PASSWORD=your-confluent-api-secret
# ── Kafka topics (auto-created by Confluent or pre-create manually) ───────────
# ops.requests.v1 6 partitions retention 7d
# ops.kafka.metrics.v1 6 partitions retention 1d
# ops.incidents.v1 6 partitions retention 30d compact+delete
# ops.actions.audit.v1 12 partitions retention 365d compact+delete
# ops.lessons.v1 3 partitions retention indefinite compacted
# ops.notifications.v1 3 partitions retention 7d
# demo.payments.events 24 partitions retention 3d
# ── SMTP (required for email notifications) ───────────────────────────────────
# Gmail (recommended)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-gmail@gmail.com
SMTP_PASS=your-app-password-here
# ── Recipient ─────────────────────────────────────────────────────────────────
NOTIFICATION_EMAIL=surajcs@gmail.com
# ── How to set up Gmail App Password ─────────────────────────────────────────
# 1. Go to https://myaccount.google.com/security
# 2. Enable 2-Step Verification (required for App Passwords)
# 3. Go to https://myaccount.google.com/apppasswords
# 4. Create an App Password → select "Mail" and "Other" → name it "agent-mesh-sre"
# 5. Copy the 16-character password into SMTP_PASS above
#
# ── Alternative SMTP providers ───────────────────────────────────────────────
#
# Outlook / Office 365:
# SMTP_HOST=smtp.office365.com SMTP_PORT=587 SMTP_SECURE=false
#
# Amazon SES:
# SMTP_HOST=email-smtp.us-east-1.amazonaws.com SMTP_PORT=587 SMTP_SECURE=false
#
# Mailhog (local dev, no credentials needed):
# SMTP_HOST=localhost SMTP_PORT=1025 SMTP_SECURE=false