Dont do socket on non-newt sites

This commit is contained in:
Owen
2025-06-04 16:02:45 -04:00
parent 58a2a9dcc9
commit df4da75c57
6 changed files with 45 additions and 66 deletions

View File

@@ -141,6 +141,7 @@ export async function createSite(
niceId,
subnet,
type,
dockerSocketEnabled: type == "newt",
...(pubKey && type == "wireguard" && { pubKey })
})
.returning();
@@ -154,6 +155,7 @@ export async function createSite(
name,
niceId,
type,
dockerSocketEnabled: type == "newt",
subnet: "0.0.0.0/0"
})
.returning();