mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🐛 Automatically rewrite http to https in federation
This commit is contained in:
parent
c28628ebb3
commit
673b7d0bae
3 changed files with 16 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue