From 9e00d143f8654b2a5ac0d7c8e13e0717d4e2b633 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 7 Jun 2025 18:39:02 +0200 Subject: [PATCH] grzegorz: add and shortcut on main domain --- modules/grzegorz.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/grzegorz.nix b/modules/grzegorz.nix index cdbdfe2..63bd77a 100644 --- a/modules/grzegorz.nix +++ b/modules/grzegorz.nix @@ -46,6 +46,15 @@ in { allow 2001:700:300:1900::/64; deny all; ''; + + locations."/docs" = { + proxyPass = "http://${grg.settings.host}:${toString grg.settings.port}"; + }; + + locations."/api" = { + proxyPass = "http://${grg.settings.host}:${toString grg.settings.port}"; + proxyWebsockets = true; + }; }; "${machine}-backend.pvv.ntnu.no" = {