diff options
| author | Dax Raad <[email protected]> | 2025-11-23 14:28:10 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-11-23 14:28:10 -0500 |
| commit | de4660ac129676fa4028c6c93d13c1eb9178b0ac (patch) | |
| tree | 57dfe34c51343bbe921763e6eda785da44ac6892 /infra | |
| parent | 27ae34168474273d7c1aa122069d82b839758974 (diff) | |
| download | opencode-de4660ac129676fa4028c6c93d13c1eb9178b0ac.tar.gz opencode-de4660ac129676fa4028c6c93d13c1eb9178b0ac.zip | |
ci: ignore
Diffstat (limited to 'infra')
| -rw-r--r-- | infra/enterprise.ts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/infra/enterprise.ts b/infra/enterprise.ts new file mode 100644 index 000000000..677c8e412 --- /dev/null +++ b/infra/enterprise.ts @@ -0,0 +1,30 @@ +import { domain } from "./stage" + +const storage = new sst.cloudflare.Bucket("EnterpriseStorage") +const token = new cloudflare.ApiToken("EnterpriseStorageToken", { + name: `${$app.name}-${$app.stage}-enterprise-storage`, + policies: [ + { + effect: "allow", + resources: { + "com.cloudflare.api.account.*": "*", + }, + permissionGroups: [ + { + id: "c8d07a38f1654800b34e33e59b4e8f41", + }, + ], + }, + ], +}) + +const enterprise = new sst.cloudflare.x.SolidStart("Enterprise", { + domain: "enterprise." + domain, + environment: { + OPENCODE_STORAGE_ADAPTER: "r2", + OPENCODE_STORAGE_ACCOUNT_ID: sst.cloudflare.DEFAULT_ACCOUNT_ID, + OPENCODE_STORAGE_ACCESS_KEY_ID: "---", + OPENCODE_STORAGE_SECRET_ACCESS_KEY: "---", + OPENCODE_STORAGE_BUCKET: storage.name, + }, +}) |
