From 700bc3939d0c2fee0357209086d2274af9cd3671 Mon Sep 17 00:00:00 2001 From: teidesu Date: Thu, 11 Jul 2024 16:08:47 +0300 Subject: [PATCH] feat(koi): teidesu-api reverse proxy --- hosts/koi/services/phpfront.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/koi/services/phpfront.nix b/hosts/koi/services/phpfront.nix index 8dbc400..fb6f0d3 100644 --- a/hosts/koi/services/phpfront.nix +++ b/hosts/koi/services/phpfront.nix @@ -40,6 +40,11 @@ # too lazy to migrate old logic for now, just error out extraConfig = "return 403;"; }; + + # todo: nixify and open-source teidesu-api + locations."/api/".extraConfig = '' + proxy_pass http://localhost:8728/; + ''; locations."/" = { extraConfig = ''