cmd: support changing path from well-known prefix, allow configuring full path

This commit is contained in:
WeebDataHoarder
2025-04-25 22:16:09 +02:00
parent a1f97adde8
commit a85aa95dbd
4 changed files with 4 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ func main() {
templateTheme := flag.String("challenge-template-theme", opt.ChallengeTemplateOverrides["Theme"], "name of the challenge template theme to use (forgejo => [forgejo-auto, forgejo-dark, forgejo-light, gitea...])")
packageName := flag.String("package-path", internalCmdName, "package name to expose in .well-known url path")
basePath := flag.String("path", "/.well-known/."+internalCmdName, "base path where to expose go-away package onto, challenges will be served from here")
jwtPrivateKeySeed := flag.String("jwt-private-key-seed", "", "Seed for the jwt private key, or on JWT_PRIVATE_KEY_SEED env. One be generated by passing \"generate\" as a value, follows RFC 8032 private key definition. Defaults to random")
@@ -244,7 +244,7 @@ func main() {
Backends: createdBackends,
MainName: internalMainName,
MainVersion: internalMainVersion,
PackageName: *packageName,
BasePath: *basePath,
PrivateKeySeed: seed,
ClientIpHeader: *clientIpHeader,
BackendIpHeader: *backendIpHeader,