f6dd41fd41
CI / Build, lint & test (push) Successful in 2m21s
Docs: - .env.example: documents all environment variables with defaults - CONTRIBUTING.md: dev setup, running tests, code style, design constraints - MODDING.md: full schema reference for cards, packs, objectives, and SBCs - .gitea/workflows/ci.yml: Gitea Actions CI (fmt check, clippy, build, test) Middleware (#50-52): - Body limit (256 KB) via DefaultBodyLimit on all routes (#50) - Concurrency limit (256 concurrent requests) via semaphore middleware; returns 429 Too Many Requests when at capacity (#51) - Correlation IDs via tower_http request_id layers; sets x-request-id UUID on every request and propagates it to the response headers (#52) Layer order (outermost → innermost): CorsLayer → DefaultBodyLimit → concurrency limit → SetRequestId → TraceLayer → PropagateRequestId → routes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
593 B
Bash
20 lines
593 B
Bash
# OpenFUT Core — environment configuration
|
|
# Copy this file to .env and adjust values for your setup.
|
|
|
|
# Server listen address (host:port)
|
|
LISTEN_ADDR=127.0.0.1:8080
|
|
|
|
# SQLite database path (relative to the working directory)
|
|
DATABASE_URL=sqlite://openfut.db
|
|
|
|
# Directory containing card, pack, objective, and SBC data files
|
|
DATA_DIR=data
|
|
|
|
# Max SQLite connection pool size
|
|
DB_MAX_CONNECTIONS=5
|
|
|
|
# Log level for the application
|
|
# Options: error, warn, info, debug, trace
|
|
# You can also use module-level filters: openfut_core=debug,tower_http=info
|
|
RUST_LOG=openfut_core=info,tower_http=debug
|