Files
nixos/modules
oqyude 3d4f1f567e
test-runner / smoke (push) Canceled after 0s
fix(nginx): don't forward request body to Authelia auth subrequest
Authelia's forward-auth endpoint was handed the original Content-Length
header of the client request but not the body itself, so it blocked
reading bytes that never arrived and finally answered 408. auth_request
cannot classify 408, so nginx reported it to the client as 500 + an HTML
error page, and the frontend surfaced "Server returned non-JSON" on
every upload.

Every bodied POST was affected (JSON upload and zip ingest) while plain
GETs kept working, which is why the page loaded fine but uploads failed.
Payload size was irrelevant: a 60-byte body failed identically to a
300 KB one.

With `proxy_pass_request_body off` and an empty Content-Length, Authelia
authorises on the forwarded headers alone, which is all forward-auth
needs. Applied to both "= /authelia" blocks (vtimeline.zeroq.su and
tty.zeroq.su).

Verified on a reproduction bench mirroring the production vhost: bodied
POSTs went 500 (HTML, 6 s timeout) -> 201 (JSON, ~10 ms).
2026-10-15 17:52:28 +03:00
..
2026-09-02 23:32:34 +03:00
2026-08-11 04:03:42 +03:00
2026-08-11 22:13:53 +03:00
2026-10-01 15:14:37 +03:00