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 -->
104 lines
2.7 KiB
TypeScript
104 lines
2.7 KiB
TypeScript
// export const vpc = new aws.ec2.Vpc('NestriVpc', {
|
|
// cidrBlock: '172.16.0.0/16',
|
|
// });
|
|
|
|
// export const subnet1 = new aws.ec2.Subnet('NestriSubnet1', {
|
|
// vpcId: vpc.id,
|
|
// cidrBlock: '172.16.1.0/24',
|
|
// // cidrBlock: '110.0.12.0/22',
|
|
// availabilityZone: 'us-east-1a',
|
|
// });
|
|
|
|
// export const subnet2 = new aws.ec2.Subnet('NestriSubnet2', {
|
|
// vpcId: vpc.id,
|
|
// cidrBlock: '172.16.2.0/24',
|
|
// // cidrBlock: '10.0.20.0/22',
|
|
// availabilityZone: 'us-east-1b',
|
|
// });
|
|
|
|
// const internetGateway = new aws.ec2.InternetGateway('NestriInternetGateway', {
|
|
// vpcId: vpc.id,
|
|
// });
|
|
|
|
// const routeTable = new aws.ec2.RouteTable('NestriRouteTable', {
|
|
// vpcId: vpc.id,
|
|
// routes: [
|
|
// {
|
|
// cidrBlock: '0.0.0.0/0',
|
|
// gatewayId: internetGateway.id,
|
|
// },
|
|
// ],
|
|
// });
|
|
|
|
// new aws.ec2.RouteTableAssociation('NestriSubnet1RouteTable', {
|
|
// subnetId: subnet1.id,
|
|
// routeTableId: routeTable.id,
|
|
// });
|
|
|
|
// new aws.ec2.RouteTableAssociation('NestriSubnet2RouteTable', {
|
|
// subnetId: subnet2.id,
|
|
// routeTableId: routeTable.id,
|
|
// });
|
|
|
|
// // const vpc = new sst.aws.Vpc("NestriRelayVpc")
|
|
|
|
// export const securityGroup = new aws.ec2.SecurityGroup("NestriSecurityGroup", {
|
|
// vpcId: vpc.id,
|
|
// description: "Managed thru SST",
|
|
// ingress: [
|
|
// {
|
|
// protocol: "tcp",
|
|
// fromPort: 80,
|
|
// toPort: 80,
|
|
// cidrBlocks: ["0.0.0.0/0"],
|
|
// },
|
|
// {
|
|
// protocol: "udp",
|
|
// fromPort: 10000,
|
|
// toPort: 20000,
|
|
// cidrBlocks: ["0.0.0.0/0"],
|
|
// },
|
|
// ],
|
|
// egress: [
|
|
// {
|
|
// protocol: "-1",
|
|
// cidrBlocks: ["0.0.0.0/0"],
|
|
// fromPort: 0,
|
|
// toPort: 0
|
|
// }
|
|
// ]
|
|
// });
|
|
|
|
// const loadBalancer = new aws.lb.LoadBalancer('NestriVpcLoadBalancer', {
|
|
// name: 'NestriVpcLoadBalancer',
|
|
// internal: false,
|
|
// securityGroups: [securityGroup.id],
|
|
// subnets: vpc.publicSubnets
|
|
// });
|
|
|
|
// const targetGroup = new aws.lb.TargetGroup('NestriVpcTargetGroup', {
|
|
// name: 'NestriVpcTargetGroup',
|
|
// port: 80,
|
|
// protocol: 'HTTP',
|
|
// targetType: 'ip',
|
|
// vpcId: vpc.id,
|
|
// healthCheck: {
|
|
// path: '/',
|
|
// protocol: 'HTTP',
|
|
// },
|
|
// });
|
|
|
|
// new aws.lb.Listener('NestriVpcLoadBalancerListener', {
|
|
// loadBalancerArn: loadBalancer.arn,
|
|
// port: 80,
|
|
// protocol: 'HTTP',
|
|
// defaultActions: [
|
|
// {
|
|
// type: 'forward',
|
|
// targetGroupArn: targetGroup.arn,
|
|
// },
|
|
// ],
|
|
// });
|
|
|
|
// // export const subnets = [subnet1, subnet2]
|