fix(api): 🐛 Automatically rewrite http to https in federation

This commit is contained in:
Jesse Wierzbinski 2024-05-17 11:42:42 -10:00
parent c28628ebb3
commit 673b7d0bae
No known key found for this signature in database
3 changed files with 16 additions and 2 deletions

View file

@ -435,11 +435,13 @@ export const configValidator = z.object({
enabled: z.boolean().default(false),
software: z.enum(["lysand-ap"]).or(z.string()),
allowed_ips: z.array(z.string().trim()).default([]),
token: z.string().default(""),
})
.default({
enabled: false,
software: "lysand-ap",
allowed_ips: [],
token: "",
}),
})
.default({
@ -460,6 +462,7 @@ export const configValidator = z.object({
enabled: false,
software: "lysand-ap",
allowed_ips: [],
token: "",
},
}),
instance: z