args: add arg to disable api auth (for development!)

a long flag to type out, that requires debug to be enabled and results
in a prompt to confirm your action.
This commit is contained in:
Harvey Tindall
2025-05-27 18:45:43 +01:00
parent 80fd7c9842
commit 79e8b24d7a
3 changed files with 26 additions and 1 deletions
+1
View File
@@ -281,6 +281,7 @@ const (
External = "external"
RegisterPprof = "Registered pprof"
SwaggerWarning = "Warning: Swagger should not be used on a public instance."
NoAPIAuthPrompt = `Disabling API auth is dangerous, only use locally for development. Disable it? [y/n]: `
// storage.go
ConnectDB = "Connected to DB \"%s\""