From 8e73fab30f3dbe2d1cdbe9149fdbc50d4f76a59b Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Fri, 14 Feb 2025 19:09:38 -0600 Subject: [PATCH] bert: Add troop352.us --- bert/services/http/index.nix | 1 + bert/services/http/troop352.us.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 bert/services/http/troop352.us.nix diff --git a/bert/services/http/index.nix b/bert/services/http/index.nix index 751d1de..409986b 100644 --- a/bert/services/http/index.nix +++ b/bert/services/http/index.nix @@ -17,6 +17,7 @@ ./stjohnscccc.com.nix ./stjohnscccc.org.nix ./swiftgang.net.nix + ./troop352.us.nix ./whereis.chandlerswift.com.nix ]; diff --git a/bert/services/http/troop352.us.nix b/bert/services/http/troop352.us.nix new file mode 100644 index 0000000..a34e233 --- /dev/null +++ b/bert/services/http/troop352.us.nix @@ -0,0 +1,19 @@ +{ + services.caddy.virtualHosts."troop352.us" = { + serverAliases = ["www.troop352.us" "troop352-demo.chandlerswift.com"]; + extraConfig = '' + encode zstd gzip + file_server + root * /srv/www/troop352.us + + handle_errors { + respond "{err.status_code} {err.status_text}" + } + ''; + }; + systemd.tmpfiles.settings."10-troop352-us" = { + "/srv/www/troop352.us" = { + d = {}; + }; + }; +}