From 6716bef52d22de36520d9e8bb6d85cafb72ba9fa Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 16 Jan 2025 21:33:03 +0100 Subject: dev: add reverse proxy setup for perplexica --- system/settings/dev.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/system/settings/dev.nix b/system/settings/dev.nix index b1817914..224e0c73 100644 --- a/system/settings/dev.nix +++ b/system/settings/dev.nix @@ -54,6 +54,28 @@ } ''; }; + "perplexica-backend.localhost" = { + logFormat = "output discard"; + extraConfig = '' + reverse_proxy http://localhost:8339 { + transport http { + dial_timeout 1s + compression off + } + } + ''; + }; + "perplexica.localhost" = { + logFormat = "output discard"; + extraConfig = '' + reverse_proxy http://localhost:8338 { + transport http { + dial_timeout 1s + compression off + } + } + ''; + }; }; }; } -- cgit 1.4.1