algernon icon indicating copy to clipboard operation
algernon copied to clipboard

Use a proper argument handling package

Open Jan69 opened this issue 4 months ago • 2 comments

I see no other way to listen on both http AND https than with --prod (although ideally I'd listen to quic+https/2+http but oh well)

but, with --prod, it OVERRIDES the cert, key, and served path???

which to me seems rather unhinged, that it doesn't error about the manual flags, but rather SILENTLY overrides them, doesn't find the respective certs, and then errors about THAT

even the examples given, give BOTH --prod AND --key and --cert, be it the dockerfiles, or in the readme claiming

For production, store the keys in a directory with as strict permissions as possible, then specify them with the --cert and --key flags.

where naturally you'd be using --prod in production

Jan69 avatar Aug 07 '25 23:08 Jan69

I literally had to go looking in the source code to even find it was an actual "feature"

Jan69 avatar Aug 07 '25 23:08 Jan69

Thanks for reporting! I'll switch the flag/argument handling to a package like spf13/cobra or urfave/cli.

xyproto avatar Aug 08 '25 07:08 xyproto