mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 08:15:38 +02:00
This adds a simple way to incorporate a centralized authentication flow. The idea is to have the user, API and SSH (for machine authentication) all in one place using `openauthjs` + `SST` We also have a database now :) > We are using InstantDB as it allows us to authenticate a use with just the email. Plus it is super simple simple to use _of course after the initial fumbles trying to design the db and relationships_
26 lines
660 B
TypeScript
26 lines
660 B
TypeScript
/// <reference path="./.sst/platform/config.d.ts" />
|
|
import { readdirSync } from "fs";
|
|
export default $config({
|
|
app(input) {
|
|
return {
|
|
name: "nestri",
|
|
removal: input?.stage === "production" ? "retain" : "remove",
|
|
home: "cloudflare",
|
|
providers: {
|
|
cloudflare: "5.37.1",
|
|
docker: "4.5.5",
|
|
"@pulumi/command": "1.0.1",
|
|
random: "4.16.8",
|
|
},
|
|
};
|
|
},
|
|
async run() {
|
|
const outputs = {};
|
|
for (const value of readdirSync("./infra/")) {
|
|
const result = await import("./infra/" + value);
|
|
if (result.outputs) Object.assign(outputs, result.outputs);
|
|
}
|
|
return outputs;
|
|
},
|
|
});
|