mirror of
https://github.com/Sea-Haven-Industries/forgejo.git
synced 2026-09-30 22:23:13 +00:00
Fix 4 critical issues: - Add filter/priority/deleteMarkerReplication to S3 CRR rule (deploy would fail without) - Add stack dependency so replica deploys before main stack - Fix DB file extension matching (.sqlite3/.sql instead of .db) - Replace nonexistent `forgejo restore` command with actual restore steps in README Fix 4 moderate issues: - Add timeout=10 to Slack webhook urlopen call - Add filter='data' to tarfile.extract for PEP 706 compliance - Add explicit ValueError for unknown handler mode - Use date-scoped S3/GCS prefix instead of unbounded listing
19 lines
593 B
JavaScript
19 lines
593 B
JavaScript
#!/usr/bin/env node
|
|
import "source-map-support/register";
|
|
import * as cdk from "aws-cdk-lib";
|
|
import { ForgejoStack } from "../lib/forgejo-stack";
|
|
import { ForgejoReplicaStack } from "../lib/forgejo-replica-stack";
|
|
|
|
const app = new cdk.App();
|
|
|
|
const replicaStack = new ForgejoReplicaStack(app, "forgejo-replica", {
|
|
stackName: "forgejo-replica",
|
|
env: { account: "328440206208", region: "us-west-2" },
|
|
});
|
|
|
|
const forgejoStack = new ForgejoStack(app, "forgejo", {
|
|
stackName: "forgejo",
|
|
env: { account: "328440206208", region: "us-east-1" },
|
|
});
|
|
|
|
forgejoStack.addDependency(replicaStack);
|