Deps
All checks were successful
Deploy NixOS / deploy (push) Successful in 21s

This commit is contained in:
2026-03-05 16:29:31 -07:00
parent e48aeea6cb
commit 1bff640204
2 changed files with 4 additions and 10 deletions

View File

@@ -35,9 +35,6 @@ let
locations."/" = {
proxyPass = "http://${upstream}:${toString port}";
proxyWebsockets = true;
# NOTE: `if` inside a location block is unsafe in general (nginx docs warn
# against it), but is safe here because the only statement is `return`.
# Do NOT add any other directives inside this if block.
extraConfig = "if ($fuckai) { return 444; }";
};
};
@@ -150,8 +147,6 @@ in
forceSSL = true;
locations."/" = {
proxyPass = "http://${upstream}:3000";
# NOTE: `if` is safe here because the only statement is `return`.
# Do NOT add other directives inside this if block.
extraConfig = "if ($fuckai) { return 444; }";
};
locations."= /.well-known/matrix/server" = {
@@ -227,8 +222,7 @@ in
client_max_body_size 100M;
'';
};
# Only forward the three known lk-jwt-service endpoints; reject everything
# else (including path traversal sequences) with 404.
locations."^~ /livekit/jwt/" = {
priority = 400;
extraConfig = ''