fix: crt
build-and-release / release (push) Successful in 2m38s

This commit is contained in:
2026-06-23 19:47:19 +02:00
parent 63c9a272b5
commit 37e5b97507
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -63,6 +63,12 @@ func main() {
} }
args = append(args, rest[0]) args = append(args, rest[0])
rest = rest[1:] 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 { if *showVersion {
+1 -1
View File
@@ -280,7 +280,7 @@ WantedBy=multi-user.target
// Output credentials to copy to the frontend // Output credentials to copy to the frontend
fmt.Println("\n======================================================================") 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.Println("======================================================================")
fmt.Printf("Token for \"dashboard\" (Bearer):\n %s\n", tokenStr) fmt.Printf("Token for \"dashboard\" (Bearer):\n %s\n", tokenStr)
if isTLS { if isTLS {
+1 -1
View File
@@ -41,7 +41,7 @@ func generateSelfSignedCert() (tls.Certificate, error) {
template := x509.Certificate{ template := x509.Certificate{
SerialNumber: serial, SerialNumber: serial,
Subject: pkix.Name{Organization: []string{"nadir-dev-local"}}, Subject: pkix.Name{Organization: []string{"urania-nadir"}},
NotBefore: time.Now(), NotBefore: time.Now(),
NotAfter: time.Now().Add(365 * 24 * time.Hour), NotAfter: time.Now().Add(365 * 24 * time.Hour),
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature, KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,