mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
refactor(config): 🚩 Remove enable flag on Redis queue config
This commit is contained in:
parent
fb9a0feac8
commit
55256e3568
|
|
@ -24,7 +24,6 @@ host = "localhost"
|
||||||
port = 6379
|
port = 6379
|
||||||
password = ""
|
password = ""
|
||||||
database = 0
|
database = 0
|
||||||
enabled = true
|
|
||||||
|
|
||||||
[redis.cache]
|
[redis.cache]
|
||||||
# Redis instance to be used as a timeline cache
|
# Redis instance to be used as a timeline cache
|
||||||
|
|
|
||||||
|
|
@ -89,10 +89,6 @@
|
||||||
"database": {
|
"database": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 0
|
"default": 0
|
||||||
},
|
|
||||||
"enabled": {
|
|
||||||
"type": "boolean",
|
|
||||||
"default": false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
|
@ -100,8 +96,7 @@
|
||||||
"host": "localhost",
|
"host": "localhost",
|
||||||
"port": 6379,
|
"port": 6379,
|
||||||
"password": "",
|
"password": "",
|
||||||
"database": 0,
|
"database": 0
|
||||||
"enabled": false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"cache": {
|
"cache": {
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@ export const configValidator = z
|
||||||
.default(6379),
|
.default(6379),
|
||||||
password: z.string().default(""),
|
password: z.string().default(""),
|
||||||
database: z.number().int().default(0),
|
database: z.number().int().default(0),
|
||||||
enabled: z.boolean().default(false),
|
|
||||||
})
|
})
|
||||||
.strict()
|
.strict()
|
||||||
.default({
|
.default({
|
||||||
|
|
@ -80,7 +79,6 @@ export const configValidator = z
|
||||||
port: 6379,
|
port: 6379,
|
||||||
password: "",
|
password: "",
|
||||||
database: 0,
|
database: 0,
|
||||||
enabled: false,
|
|
||||||
}),
|
}),
|
||||||
cache: z
|
cache: z
|
||||||
.object({
|
.object({
|
||||||
|
|
@ -540,6 +538,7 @@ export const configValidator = z
|
||||||
// 1 year
|
// 1 year
|
||||||
.default(60 * 60 * 24 * 365),
|
.default(60 * 60 * 24 * 365),
|
||||||
})
|
})
|
||||||
|
.strict()
|
||||||
.default({
|
.default({
|
||||||
remove_on_complete: 60 * 60 * 24 * 365,
|
remove_on_complete: 60 * 60 * 24 * 365,
|
||||||
remove_on_failure: 60 * 60 * 24 * 365,
|
remove_on_failure: 60 * 60 * 24 * 365,
|
||||||
|
|
@ -557,6 +556,7 @@ export const configValidator = z
|
||||||
// 1 year
|
// 1 year
|
||||||
.default(60 * 60 * 24 * 365),
|
.default(60 * 60 * 24 * 365),
|
||||||
})
|
})
|
||||||
|
.strict()
|
||||||
.default({
|
.default({
|
||||||
remove_on_complete: 60 * 60 * 24 * 365,
|
remove_on_complete: 60 * 60 * 24 * 365,
|
||||||
remove_on_failure: 60 * 60 * 24 * 365,
|
remove_on_failure: 60 * 60 * 24 * 365,
|
||||||
|
|
@ -574,11 +574,13 @@ export const configValidator = z
|
||||||
// 1 year
|
// 1 year
|
||||||
.default(60 * 60 * 24 * 365),
|
.default(60 * 60 * 24 * 365),
|
||||||
})
|
})
|
||||||
|
.strict()
|
||||||
.default({
|
.default({
|
||||||
remove_on_complete: 60 * 60 * 24 * 365,
|
remove_on_complete: 60 * 60 * 24 * 365,
|
||||||
remove_on_failure: 60 * 60 * 24 * 365,
|
remove_on_failure: 60 * 60 * 24 * 365,
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
.strict()
|
||||||
.default({
|
.default({
|
||||||
delivery: {
|
delivery: {
|
||||||
remove_on_complete: 60 * 60 * 24 * 365,
|
remove_on_complete: 60 * 60 * 24 * 365,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue