mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 00:05:36 +02:00
We are hosting a [MoQ](https://quic.video) relay on a remote (bare metal) server on Hetzner With a lot of help from @victorpahuus
25 lines
627 B
TypeScript
25 lines
627 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: "aws",
|
|
providers: {
|
|
cloudflare: "5.37.1",
|
|
docker: "4.5.5",
|
|
"@pulumi/command": "1.0.1",
|
|
},
|
|
};
|
|
},
|
|
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;
|
|
},
|
|
});
|