feat(config): add license.key configuration option

Add license key configuration under the license section. When empty or
absent, Vikunja runs in community mode with no licensed features.
This commit is contained in:
kolaente 2026-03-24 19:45:41 +01:00 committed by kolaente
parent 9899979ca7
commit ecc2243513
2 changed files with 14 additions and 0 deletions

View File

@ -1056,6 +1056,16 @@
"comment": "The plugin loader to use. \"yaegi\" loads plugins from Go source files (directories of .go files). \"native\" (deprecated) loads compiled Go plugin shared libraries (.so files)."
}
]
},
{
"key": "license",
"children": [
{
"key": "key",
"default_value": "",
"comment": "The license key for Vikunja. If empty or absent, Vikunja runs in community mode with all non-licensed features available."
}
]
}
]
}

View File

@ -232,6 +232,8 @@ const (
PluginsEnabled Key = `plugins.enabled`
PluginsDir Key = `plugins.dir`
PluginsLoader Key = `plugins.loader`
LicenseKey Key = `license.key`
)
var maxFileSizeInBytes uint64
@ -503,6 +505,8 @@ func InitDefaultConfig() {
log.Warningf("Config key %q is deprecated and will be removed in a future release. Please use %q instead.", WebhooksProxyPassword, OutgoingRequestsProxyPassword)
OutgoingRequestsProxyPassword.Set(proxyPassword)
}
// License
LicenseKey.setDefault("")
}
// ResolvePath resolves a path relative to service.rootpath.