v0.4.1
What's Changed
Added
APP_SESSION_SECURE(defaultfalse): mark the session cookieSecure;
recommended behind a TLS reverse proxy.APP_TRUSTED_PROXIES(IPs/CIDRs, default empty): trustX-Forwarded-For
from these proxies so the app can resolve real client IPs.- Login successes and failures are now logged with username and client IP.
Fixed
/ws/liveand/ws/crowdsecnow send an empty keepalive frame after 30s of
silence so reverse proxies (nginxproxy_read_timeout, 60s default / 240s in
SWAG) no longer cut idle live-feed connections on quiet servers.- WebSocket reconnect backoff (
/ws/live,/ws/crowdsec) resets on a valid
frame instead of on open, ending the 1s reconnect loop while the server
closes with 1013. - The
/ws/crowdsecclient ignores non-string/malformed frames instead of
throwing.
- fix(frontend): don't reset WS reconnect backoff on open; guard /ws/crowdsec frame parsing by @GilbN in #36
- fix(ws): send idle keepalive frames on /ws/live and /ws/crowdsec by @GilbN in #38
- Reverse-proxy hardening: trusted-proxy client IPs, login logging, Secure cookie, proxy docs by @GilbN in #37
- 0.4.1 by @GilbN in #39
Full Changelog: 0.4.0...v0.4.1