Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@

PORT=3000
DATABASE_URL=postgresql://user:password@localhost:5432/payd
NODE_ENV=development

# ─── Logging/Monitoring/ELK ─────────────────────────────
LOG_LEVEL=info
LOG_FORMAT=json
LOG_DIR=logs

# ─── Elasticsearch ─────────────────────────────────────
ELASTICSEARCH_URL=http://localhost:9200
ELASTICSEARCH_USERNAME=
ELASTICSEARCH_PASSWORD=
ELASTICSEARCH_INDEX_PREFIX=payd
ELASTICSEARCH_ENABLED=false

# ─── Logstash ──────────────────────────────────────────
LOGSTASH_HOST=localhost
LOGSTASH_PORT=5044

# ─── Kibana ────────────────────────────────────────────
KIBANA_URL=http://localhost:5601

# ─── Alerting ─────────────────────────────────────────
ALERT_EMAIL_ENABLED=false
ALERT_EMAIL_FROM=alerts@payd.dev
ALERT_EMAIL_TO=
SMTP_HOST=
SMTP_PORT=587
SMTP_USER=
SMTP_PASS=
ERROR_RATE_THRESHOLD=10
RESPONSE_TIME_THRESHOLD_MS=5000
ALERT_COOLDOWN_MS=300000

# ─── Tracing ──────────────────────────────────────────
TRACING_ENABLED=true
TRACING_SAMPLE_RATE=1.0
SERVICE_NAME=payd-backend
SERVICE_VERSION=1.0.0
4 changes: 4 additions & 0 deletions backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@

node_modules/
dist/
.env
*.log
logs/
.DS_Store
coverage/
*.test.ts.snap
.jest-cache/
# Monitoring/ELK
src/config/monitoring.ts
Loading