feat: add backend CI/CD deployment

This commit is contained in:
hailt 2026-11-12 21:32:31 +07:00
parent 8d40cff227
commit 7c2e6ed571
21 changed files with 269 additions and 41 deletions

View file

@ -1,20 +1,23 @@
# Copy to .env and fill secrets. NEVER commit .env.
# R2 = S3-compatible. Endpoint bucket-style:
# MinIO/R2 = S3-compatible. Endpoint bucket-style:
# https://<account_id>.r2.cloudflarestorage.com
APP_ENV=dev
API_HOST=0.0.0.0
API_PORT=8000
# --- Postgres / Redis (docker-compose provides defaults) ---
DATABASE_URL=postgresql+asyncpg://danable:danable@localhost:5432/danable
REDIS_URL=redis://localhost:6379/0
POSTGRES_USER=danagble
POSTGRES_PASSWORD=change-this-password
POSTGRES_DB=danagble
DATABASE_URL=postgresql+asyncpg://danagble:change-this-password@postgres:5432/danagble
REDIS_URL=redis://redis:6379/0
# --- Auth ---
JWT_SECRET=change-me
JWT_EXPIRE_MINUTES=720
# --- Cloudflare R2 (secret part; non-secret shape lives in config.yaml) ---
R2_ENDPOINT=https://651cefb20bd66d84bd12cb62773b5a97.r2.cloudflarestorage.com
R2_ENDPOINT=http://minio:9000
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
R2_BUCKET=danagble