Add V1 infrastructure: Gitea Actions CI/CD + Fly.io + Cloudflare Pages

- Gitea Actions workflows: ci.yml (tests+clippy+fmt), benchmark.yml (P99 gate), deploy.yml (Fly+CF)
- Fly.io configs: proxy (shared-cpu, 256MB, min 1 machine), API (scale-to-zero)
- Dockerfiles: multi-stage Rust builds for proxy and API binaries
- INFRASTRUCTURE.md: full V1 stack (~$5/mo), AWS migration path, Gitea runner setup, DNS plan
- Stack: Fly.io + Cloudflare Pages + Neon + Upstash + Gitea Actions
This commit is contained in:
2026-03-01 02:37:48 +00:00
parent a486373d93
commit 8a4c7c256d
8 changed files with 295 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
# Fly.io config — dd0c/route Dashboard API
app = "dd0c-route-api"
primary_region = "iad"
[build]
dockerfile = "Dockerfile.api"
[env]
RUST_LOG = "dd0c_route=info,tower_http=info"
API_PORT = "3000"
AUTH_MODE = "local"
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0 # Scale to zero when idle
[http_service.concurrency]
type = "requests"
hard_limit = 100
soft_limit = 80
[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 256