fix(config): 🐛 Fix crashes with default config values

This commit is contained in:
Jesse Wierzbinski 2024-06-13 23:29:41 -10:00
parent edbe6e45b2
commit b7f8f6689e
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View file

@ -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)

View file

@ -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"),