caelum0x d56639a594
Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

55 lines
1.4 KiB
HCL

# Cloudflare R2 bucket module — ReelForge object storage (rendered reels, assets,
# derivatives). CORS + a lifecycle rule to expire scratch/preview objects.
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4.0"
}
}
}
variable "account_id" { type = string }
variable "bucket_name" { type = string }
variable "cors_origins" {
type = list(string)
default = ["*"]
}
variable "scratch_expire_days" {
type = number
default = 7
}
resource "cloudflare_r2_bucket" "this" {
account_id = var.account_id
name = var.bucket_name
location = "WNAM"
}
# CORS so the web app can presign-upload/download directly.
resource "cloudflare_r2_bucket_cors_configuration" "this" {
account_id = var.account_id
bucket = cloudflare_r2_bucket.this.name
rule {
allowed { methods = ["GET", "PUT", "HEAD"], origins = var.cors_origins, headers = ["*"] }
expose_headers = ["ETag"]
max_age_seconds = 3600
}
}
# Expire short-lived scratch/preview objects (jobs/*/scratch, previews).
resource "cloudflare_r2_bucket_lifecycle_configuration" "this" {
account_id = var.account_id
bucket = cloudflare_r2_bucket.this.name
rule {
id = "expire-scratch"
status = "Enabled"
filter { prefix = "scratch/" }
expiration { days = var.scratch_expire_days }
}
}
output "bucket_name" { value = cloudflare_r2_bucket.this.name }