Compare commits
No commits in common. "main" and "v2" have entirely different histories.
|
@ -43,7 +43,6 @@ func logMiddleware(h http.HandlerFunc) http.HandlerFunc {
|
|||
func main() {
|
||||
listenAddr := flag.String("listen", ":1612", "HTTP listen address")
|
||||
debPath := flag.String("debpath", "debs", "Path to directory containing deb files.")
|
||||
privKey := flag.String("privkey", "privkey.gpg", "Path to private key file. Will be created if it doesn't exist")
|
||||
httpUser := flag.String("httpuser", "debanator", "Username for HTTP basic auth")
|
||||
httpPass := flag.String("httppass", "", "Enable HTTP basic auth with this password")
|
||||
showVersion := flag.Bool("version", false, "Show version")
|
||||
|
@ -59,11 +58,11 @@ func main() {
|
|||
"commit": debanator.Commit,
|
||||
}).Info("Starting debanator...")
|
||||
var ecKey *crypto.Key
|
||||
kb, err := os.ReadFile(*privKey)
|
||||
kb, err := os.ReadFile("privkey.gpg")
|
||||
if err != nil {
|
||||
log.Infof("Generating new key...")
|
||||
ecKey = debanator.Unwrap(crypto.GenerateKey("Debanator", "packager@example.com", "x25519", 0))
|
||||
f := debanator.Unwrap(os.Create(*privKey))
|
||||
f := debanator.Unwrap(os.Create("privkey.gpg"))
|
||||
defer f.Close()
|
||||
armored := debanator.Unwrap(ecKey.Armor())
|
||||
f.WriteString(armored)
|
||||
|
|
|
@ -13,9 +13,6 @@ Proof of concept. Neither fast, efficient, secure, neat, or featureful. Don't us
|
|||
production unless you are really sure you know what you're doing and even then prepare
|
||||
to have your laundry eaten.
|
||||
|
||||
## Contributing
|
||||
Contributions welcome! You may find the Github mirror at https://github.com/wlcx/debanator easier if you're not already there.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
Loading…
Reference in New Issue