From 172a6214d7c30278017129b950339c78a6ddb7bc Mon Sep 17 00:00:00 2001 From: k2s Date: Sun, 12 Jun 2022 12:50:43 +0000 Subject: [PATCH] fix: VIKUNJA_SERVICE_JWT_SECRET should be VIKUNJA_SERVICE_JWTSECRET (#1184) Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1184 Reviewed-by: konrad Co-authored-by: k2s Co-committed-by: k2s --- docs/content/doc/setup/config.md | 2 +- magefile.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/doc/setup/config.md b/docs/content/doc/setup/config.md index 9124b259bc..2721d6e827 100644 --- a/docs/content/doc/setup/config.md +++ b/docs/content/doc/setup/config.md @@ -76,7 +76,7 @@ Default: `` Full path: `service.JWTSecret` -Environment path: `VIKUNJA_SERVICE_JWT_SECRET` +Environment path: `VIKUNJA_SERVICE_JWTSECRET` ### jwtttl diff --git a/magefile.go b/magefile.go index 0264254735..b5a0e17fc6 100644 --- a/magefile.go +++ b/magefile.go @@ -1051,7 +1051,7 @@ func printConfig(config []*configOption, level int, parent string) (rendered str fullPath := parent + "." + option.key rendered += "Full path: `" + fullPath + "`\n\n" - rendered += "Environment path: `VIKUNJA_" + strcase.ToScreamingSnake(fullPath) + "`\n\n" + rendered += "Environment path: `VIKUNJA_" + strcase.ToScreamingSnake(strings.ToUpper(fullPath)) + "`\n\n" } }