From 29a74491118c461e11aec34638e5a84ccc57aed4 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 20 Dec 2024 02:00:12 -0600 Subject: [PATCH] feat: caddy test --- nixos/modules/services/default.nix | 1 + nixos/modules/services/upRootNutrition.nix | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/nixos/modules/services/default.nix b/nixos/modules/services/default.nix index 71b6ce8..4d0182f 100755 --- a/nixos/modules/services/default.nix +++ b/nixos/modules/services/default.nix @@ -14,6 +14,7 @@ "logrotate" "minecraft" "ollama" + "upRootNutrition" "peertube" "postgresql" "owncast" diff --git a/nixos/modules/services/upRootNutrition.nix b/nixos/modules/services/upRootNutrition.nix index 78767bd..b92aaff 100755 --- a/nixos/modules/services/upRootNutrition.nix +++ b/nixos/modules/services/upRootNutrition.nix @@ -9,14 +9,14 @@ in { virtualHosts = { "${host}" = { extraConfig = '' - log { - level DEBUG - output file /var/log/caddy/access.log - } - root * ${service.path.path0} + root * ${service.paths.path0} + file_server + encode gzip + try_files {path} /index.html + tls ${service.ssl.cert} ${service.ssl.key} ''; };