From 0a0c45cc96b3e9be4ff470607e7d8245fd4e5a88 Mon Sep 17 00:00:00 2001 From: David Crompton Date: Sun, 15 Feb 2026 19:00:25 -0500 Subject: [PATCH] hippocampus: dawarich: fix --- machines/hippocampus/servers/public/dawarich.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/machines/hippocampus/servers/public/dawarich.nix b/machines/hippocampus/servers/public/dawarich.nix index fba6b94..a79cc04 100644 --- a/machines/hippocampus/servers/public/dawarich.nix +++ b/machines/hippocampus/servers/public/dawarich.nix @@ -2,12 +2,19 @@ services.dawarich = { enable = true; webPort = 7392; + configureNginx = false; + localDomain = "location.crompton.cc"; }; services.caddy.virtualHosts = { - "location.crompton.cc" = { + ${config.services.dawarich.localDomain} = { extraConfig = '' reverse_proxy localhost:${toString config.services.dawarich.webPort} + encode brotli { + match { + content_type text/css text/plain text/xml text/x-component text/javascript application/x-javascript application/javascript application/json application/manifest+json application/vnd.api+json application/xml application/xhtml+xml application/rss+xml application/atom+xml application/vnd.ms-fontobject application/x-font-ttf application/x-font-opentype application/x-font-truetype image/svg+xml image/x-icon image/vnd.microsoft.icon font/ttf font/eot font/otf font/opentype + } + } ''; }; };