mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-04 17:56:38 +00:00
Dont do local sites undefined in cloud
This commit is contained in:
@@ -126,7 +126,8 @@ export async function getTraefikConfig(
|
|||||||
and(
|
and(
|
||||||
isNull(sites.exitNodeId),
|
isNull(sites.exitNodeId),
|
||||||
sql`(${siteTypes.includes("local") ? 1 : 0} = 1)`, // only allow local sites if "local" is in siteTypes
|
sql`(${siteTypes.includes("local") ? 1 : 0} = 1)`, // only allow local sites if "local" is in siteTypes
|
||||||
eq(sites.type, "local")
|
eq(sites.type, "local"),
|
||||||
|
sql`(${build != "saas" ? 1 : 0} = 1)` // Dont allow undefined local sites in cloud
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
or(
|
or(
|
||||||
|
|||||||
Reference in New Issue
Block a user