commit b2bdc91cc99b13f1199844f0de71f36922ba38d3
parent 092ac282120f0f188c333c26a6c75803542ae11e
Author: Silas Brack <silasbrack@gmail.com>
Date: Mon, 8 Jun 2026 17:54:08 +0200
feat: SSE support for realtime comments, nginx proxy_buffering off
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/flake.lock b/flake.lock
@@ -318,11 +318,11 @@
"rust-overlay": "rust-overlay"
},
"locked": {
- "lastModified": 1780866599,
- "narHash": "sha256-KMOdgOPO1Cb6GuN3aOUewVIKd5mMuIOWhIIllpQCMyM=",
+ "lastModified": 1780933834,
+ "narHash": "sha256-myuKLD5DEhTLi8VXB7DpDNlbkHaoD7oK2Rwab7ro6lM=",
"ref": "refs/heads/main",
- "rev": "492f110322442a94b16500601576bd274ded2fcf",
- "revCount": 99,
+ "rev": "c6c96d2d8b32daa1e36c9b787f85b50bd166c751",
+ "revCount": 100,
"type": "git",
"url": "ssh://forgejo@git.fnarglebeast.com/silas/simple-web-app.git"
},
diff --git a/modules/simple-web-app.nix b/modules/simple-web-app.nix
@@ -117,6 +117,12 @@ in
locations."/api/" = {
proxyPass = "http://127.0.0.1:${builtins.toString cfg.trailbasePort}";
recommendedProxySettings = true;
+ extraConfig = ''
+ # SSE support for realtime subscriptions
+ proxy_buffering off;
+ proxy_cache off;
+ proxy_read_timeout 86400s;
+ '';
};
};