hydra: serve statics directly through nginx
Saves on some starman workers which could be better used serving actual dynamic requests.
Pierre Bourdon committed
Jan 26, 2024 at 18:02 UTC
5a6ca7863c0c8bfd73bde3da7b0b70522ccdf5cc
1 file changed
+4
delft/hydra-proxy.nix
+4
@@ -29,6 +29,10 @@
29
locations."/" = {
30
proxyPass = "http://127.0.0.1:3000";
31
};
32
+
33
+ locations."/static/" = {
34
+ alias = "${config.services.hydra-dev.package}/libexec/hydra/root/static/";
35
+ };
36
};
37
};
38