This commit is contained in:
2026-06-23 19:47:19 +02:00
parent 63c9a272b5
commit 44fe1a871e
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -63,6 +63,12 @@ func main() {
}
args = append(args, rest[0])
rest = rest[1:]
if len(args) > 0 {
// Once we have identified the subcommand, the remaining arguments
// belong to it (including its own flags), so we stop parsing global flags.
args = append(args, rest...)
break
}
}
if *showVersion {
+1 -1
View File
@@ -280,7 +280,7 @@ WantedBy=multi-user.target
// Output credentials to copy to the frontend
fmt.Println("\n======================================================================")
fmt.Println(" NADIR CLIENT CREDENTIALS (COPY THESE TO SVELTEKIT FRONTEND)")
fmt.Println(" NADIR CLIENT CREDENTIALS (COPY THESE TO NADIR WEBUI)")
fmt.Println("======================================================================")
fmt.Printf("Token for \"dashboard\" (Bearer):\n %s\n", tokenStr)
if isTLS {
+1 -1
View File
@@ -41,7 +41,7 @@ func generateSelfSignedCert() (tls.Certificate, error) {
template := x509.Certificate{
SerialNumber: serial,
Subject: pkix.Name{Organization: []string{"nadir-dev-local"}},
Subject: pkix.Name{Organization: []string{"urania-nadir"}},
NotBefore: time.Now(),
NotAfter: time.Now().Add(365 * 24 * time.Hour),
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,