BetterFrame/server
Mitchell R 8082571b03
fix(firmware): tolerate mangled PEM in BF_FIRMWARE_SIGNING_KEY env
Coolify / docker compose env injection routinely strips real newlines or
wraps in quotes, causing createPrivateKey to throw ERR_OSSL_UNSUPPORTED
and crashing the server before it can even start.

tryParsePrivateKey now attempts: literal, \n→LF, CRLF→LF, quote-stripped,
base64-decoded, and single-line PEM re-wrapped to 64-col. On total
failure, logs a clear warning and falls back to on-disk / generated key
instead of crashing.
2026-05-18 22:47:07 +02:00
..
src fix(firmware): tolerate mangled PEM in BF_FIRMWARE_SIGNING_KEY env 2026-05-18 22:47:07 +02:00
.gitignore build fixes for bsb 2026-05-10 01:46:11 +02:00
bsb-tests.json build fixes for bsb 2026-05-10 01:46:11 +02:00
package.json feat(server): generic MQTT telemetry bridge (off by default) 2026-05-14 07:46:56 +02:00
tsconfig.json adding initial project 2026-05-10 01:09:13 +02:00