feat: Gitea | set up minio storage pointing at R2

This commit is contained in:
2025-11-16 12:30:27 +05:00
parent 0d6c5d4a98
commit cfe7830606
3 changed files with 39 additions and 5 deletions

View File

@@ -21,10 +21,7 @@ import { ExternalDNS } from "./external-dns";
dotenv.config();
const env = cleanEnv(process.env, {
R2_ACCESS_KEY_ID: str(),
R2_SECRET_ACCESS_KEY: str(),
ACCOUNT_ID: str({ desc: "Cloudflare account id." }),
BUCKET: str({ desc: "The name of the R2 bucket." }),
});
const r2Endpoint = `https://${env.ACCOUNT_ID}.r2.cloudflarestorage.com`;
@@ -139,6 +136,7 @@ class Homelab extends TerraformStack {
name: "gitea",
namespace,
provider: helm,
r2Endpoint: `${env.ACCOUNT_ID}.r2.cloudflarestorage.com`,
});
gitea.node.addDependency(authentik);