installer: find a CA-signed nginx certificate, don't get stuck on http

- an upgrade only stays on http if --http was given explicitly (marker
  file data/http-only); before, a 4.0 install that had fallen back to
  http never switched to https
- look for certificates in all nginx config files and prefer a CA-signed
  one (chain file or issuer != subject) over the self-signed default
- hint how to install libustream-openssl when uhttpd lacks TLS

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal Suter
2026-11-16 15:37:07 +01:00
co-authored by Claude Opus 5.5
parent 1459b3228d
commit 8928ae7077
3 changed files with 84 additions and 29 deletions
+2 -1
View File
@@ -33,7 +33,8 @@ Running a newer installer over an existing install upgrades it and keeps
accounts, messages, photos, the port and the http/https choice. Options:
-p <port> port (default 8088)
--http plain http instead of https
--http plain http instead of https (kept on upgrades;
--https switches back)
--cert <file> --key <file> https with your own certificate (PEM, kept on upgrades)
wipe delete all messages and photos (accounts stay)
uninstall remove everything