mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
⭐ feat(www): Finish up on the onboarding (#210)
Merging this prematurely to make sure the team is on the same boat... like dang! We need to find a better way to do this. Plus it has become too big
This commit is contained in:
43
infra/steam.ts
Normal file
43
infra/steam.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import { domain } from "./dns";
|
||||
import { cluster } from "./cluster";
|
||||
import { auth } from "./auth";
|
||||
|
||||
export const steam = new sst.aws.Service("Steam", {
|
||||
cluster,
|
||||
wait: true,
|
||||
image: {
|
||||
context: "packages/steam",
|
||||
},
|
||||
loadBalancer: {
|
||||
domain:
|
||||
$app.stage === "production"
|
||||
? undefined
|
||||
: {
|
||||
name: "steam." + domain,
|
||||
dns: sst.cloudflare.dns(),
|
||||
},
|
||||
rules: [
|
||||
{ listen: "443/https", forward: "5289/http" },
|
||||
{ listen: "80/http", forward: "5289/http" },
|
||||
],
|
||||
},
|
||||
environment: {
|
||||
NESTRI_AUTH_JWKS_URL: $interpolate`${auth.url}`
|
||||
},
|
||||
scaling:
|
||||
$app.stage === "production"
|
||||
? {
|
||||
min: 2,
|
||||
max: 4,
|
||||
}
|
||||
: undefined,
|
||||
logging: {
|
||||
retention: "1 month",
|
||||
},
|
||||
architecture: "arm64",
|
||||
dev: {
|
||||
directory: "packages/steam",
|
||||
command: "dotnet run",
|
||||
url: "http://localhost:5289",
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user