mirror of
https://github.com/versia-pub/server.git
synced 2025-12-07 08:48:19 +01:00
fix(config): 🐛 Fix crashes with default config values
This commit is contained in:
parent
edbe6e45b2
commit
b7f8f6689e
|
|
@ -54,8 +54,6 @@ forced = false
|
|||
# Overriden by the signups.registration setting
|
||||
allow_registration = true
|
||||
|
||||
# Delete this section if you don't want to use custom OAuth providers
|
||||
# This is an example configuration
|
||||
# The provider MUST support OpenID Connect with .well-known discovery
|
||||
# Most notably, GitHub does not support this
|
||||
# Redirect URLs in your OAuth provider can be set to this:
|
||||
|
|
@ -63,7 +61,7 @@ allow_registration = true
|
|||
# The asterisk is important, as it allows for any query parameters to be passed
|
||||
# Authentik for example uses regex so it can be set to (regex):
|
||||
# <base_url>/oauth/sso/<provider_id>/callback.*
|
||||
[[oidc.providers]]
|
||||
# [[oidc.providers]]
|
||||
# name = "CPlusPatch ID"
|
||||
# id = "cpluspatch-id"
|
||||
# This MUST match the provider's issuer URI, including the trailing slash (or lack thereof)
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ export const configValidator = z.object({
|
|||
}),
|
||||
)
|
||||
.default([]),
|
||||
jwt_key: z.string().min(3).includes(";").default(""),
|
||||
jwt_key: z.string().min(3).includes(";").default("").or(z.literal("")),
|
||||
}),
|
||||
http: z.object({
|
||||
base_url: z.string().min(1).default("http://lysand.social"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue