summary refs log tree commit diff stats
path: root/module/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-03-22 15:49:33 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-03-22 15:49:33 +0100
commit97113ea2a5df7f7c78eb523b82560ec9d58a6fda (patch)
tree046aff36887c79956ac467182bf3d611a652faed /module/default.nix
parentfix(module): Allow the `@chown` syscall family (diff)
downloadnix-97113ea2a5df7f7c78eb523b82560ec9d58a6fda.zip
fix(module): Strip the `/api/` path prefix before passing to `rocie-server`
Diffstat (limited to '')
-rw-r--r--module/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/default.nix b/module/default.nix
index d2e53d3..d9872c3 100644
--- a/module/default.nix
+++ b/module/default.nix
@@ -134,8 +134,8 @@ in {
     };
 
     services.nginx.virtualHosts."${cfg.domain}" = {
-      locations."/api" = {
-        proxyPass = "http://127.0.0.1:${builtins.toString cfg.port}";
+      locations."/api/" = {
+        proxyPass = "http://127.0.0.1:${builtins.toString cfg.port}/";
 
         recommendedProxySettings = true;
         proxyWebsockets = true;