/ justapi / .env.example
swadhinbiswas chore: initialize workspace with Cargo.toml, license, and tooling configs · 7/6/2026
614d6a8
30 lines · 593 Bytes
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
# JustAPI Environment Configuration
# Copy this file to .env and adjust values for your deployment.

# Server
HOST=0.0.0.0
PORT=8080

# Database (PostgreSQL)
DATABASE_URL=postgres://justapi:changeme@localhost:5432/justapi

# Redis (caching, rate limiting)
REDIS_URL=redis://localhost:6379

# TLS (optional)
TLS_CERT_PATH=
TLS_KEY_PATH=

# Observability
RUST_LOG=info
OTEL_SERVICE_NAME=justapi
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
JAEGER_AGENT_HOST=localhost
JAEGER_AGENT_PORT=6831

# Static files directory (optional)
STATIC_DIR=./static

# Feature flags
COMPRESSION_ENABLED=true