mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 00:05:36 +02:00
## Description - [x] Adds support for AWS SSO, which makes us (the team) able to use SST and update the components independently - [x] Splits the webpage into the landing page (Qwik), and Astro (the console) in charge of playing. This allows us to pass in Environment Variables to the console - ~Migrates the docs from Nuxt to Nextjs, and connects them to SST. This allows us to use Fumadocs _citation needed_ that's much more beautiful, and supports OpenApi~ - Cloudflare pages with github integration is not working on our new CF account. So we will have to push the pages deployment manually with Github actions - [x] Moves the current set up from my personal CF and AWS accounts to dedicated Nestri accounts - ## Related Issues <!-- List any related issues (e.g., "Closes #123", "Fixes #456") --> ## Type of Change - [ ] Bug fix (non-breaking change) - [x] New feature (non-breaking change) - [ ] Breaking change (fix or feature that changes existing functionality) - [x] Documentation update - [ ] Other (please describe): ## Checklist - [x] I have updated relevant documentation - [x] My code follows the project's coding style - [x] My changes generate no new warnings/errors ## Notes for Reviewers <!-- Point out areas you'd like reviewers to focus on, questions you have, or decisions that need discussion --> Please approve my PR 🥹 ## Screenshots/Demo <!-- If applicable, add screenshots or a GIF demo of your changes (especially for UI changes) --> ## Additional Context <!-- Add any other context about the pull request here -->
54 lines
1.3 KiB
TypeScript
54 lines
1.3 KiB
TypeScript
import { authFingerprintKey } from "./auth";
|
|
import { domain } from "./dns";
|
|
import { secret } from "./secrets"
|
|
// import { party } from "./party"
|
|
import { gpuTaskDefinition, ecsCluster } from "./cluster";
|
|
|
|
export const urls = new sst.Linkable("Urls", {
|
|
properties: {
|
|
api: "https://api." + domain,
|
|
auth: "https://auth." + domain,
|
|
},
|
|
});
|
|
|
|
export const kv = new sst.cloudflare.Kv("CloudflareAuthKV")
|
|
|
|
export const auth = new sst.cloudflare.Worker("Auth", {
|
|
link: [
|
|
kv,
|
|
urls,
|
|
authFingerprintKey,
|
|
secret.InstantAdminToken,
|
|
secret.InstantAppId,
|
|
secret.LoopsApiKey,
|
|
secret.GithubClientID,
|
|
secret.GithubClientSecret,
|
|
secret.DiscordClientID,
|
|
secret.DiscordClientSecret,
|
|
],
|
|
handler: "./packages/functions/src/auth.ts",
|
|
url: true,
|
|
domain: "auth." + domain
|
|
});
|
|
|
|
export const api = new sst.cloudflare.Worker("Api", {
|
|
link: [
|
|
urls,
|
|
ecsCluster,
|
|
gpuTaskDefinition,
|
|
authFingerprintKey,
|
|
secret.LoopsApiKey,
|
|
secret.InstantAppId,
|
|
secret.AwsAccessKey,
|
|
secret.AwsSecretKey,
|
|
secret.InstantAdminToken,
|
|
],
|
|
url: true,
|
|
handler: "./packages/functions/src/api/index.ts",
|
|
domain: "api." + domain
|
|
})
|
|
|
|
export const outputs = {
|
|
auth: auth.url,
|
|
api: api.url
|
|
} |