summary refs log tree commit diff stats
path: root/system/settings
diff options
context:
space:
mode:
authorAlan Pearce2025-01-16 21:33:03 +0100
committerAlan Pearce2025-01-16 21:33:03 +0100
commit6716bef52d22de36520d9e8bb6d85cafb72ba9fa (patch)
tree5fb0f9edb36a67fc821fcf1a493d5bf53c33c99d /system/settings
parent0f9926dfa37ea726df515c62beb370a091c75a87 (diff)
downloadnixfiles-6716bef52d22de36520d9e8bb6d85cafb72ba9fa.tar.lz
nixfiles-6716bef52d22de36520d9e8bb6d85cafb72ba9fa.tar.zst
nixfiles-6716bef52d22de36520d9e8bb6d85cafb72ba9fa.zip
dev: add reverse proxy setup for perplexica HEAD main
Diffstat (limited to 'system/settings')
-rw-r--r--system/settings/dev.nix22
1 files changed, 22 insertions, 0 deletions
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
+              }
+            }
+          '';
+        };
       };
   };
 }