mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(config): 🐛 Make some default config values more sensible
This commit is contained in:
parent
f9dcbb1be8
commit
c0805ff125
3 changed files with 16 additions and 21 deletions
|
|
@ -283,7 +283,7 @@ export const configValidator = z.object({
|
|||
validation: z
|
||||
.object({
|
||||
max_displayname_size: z.number().int().default(50),
|
||||
max_bio_size: z.number().int().default(160),
|
||||
max_bio_size: z.number().int().default(5000),
|
||||
max_note_size: z.number().int().default(5000),
|
||||
max_avatar_size: z.number().int().default(5000000),
|
||||
max_header_size: z.number().int().default(5000000),
|
||||
|
|
@ -301,8 +301,7 @@ export const configValidator = z.object({
|
|||
username_blacklist: z
|
||||
.array(z.string())
|
||||
.default([
|
||||
".well-known",
|
||||
"~",
|
||||
"well-known",
|
||||
"about",
|
||||
"activities",
|
||||
"api",
|
||||
|
|
@ -371,7 +370,7 @@ export const configValidator = z.object({
|
|||
})
|
||||
.default({
|
||||
max_displayname_size: 50,
|
||||
max_bio_size: 160,
|
||||
max_bio_size: 5000,
|
||||
max_note_size: 5000,
|
||||
max_avatar_size: 5000000,
|
||||
max_header_size: 5000000,
|
||||
|
|
@ -387,8 +386,7 @@ export const configValidator = z.object({
|
|||
max_field_name_size: 1000,
|
||||
max_field_value_size: 1000,
|
||||
username_blacklist: [
|
||||
".well-known",
|
||||
"~",
|
||||
"well-known",
|
||||
"about",
|
||||
"activities",
|
||||
"api",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue