From c993aa7c257e5763d547def409aa5e8a53ab0bd2 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Mon, 4 Nov 2024 19:20:49 -0600 Subject: [PATCH] Add files.chandlerswift.com --- bert/services/http/files.chandlerswift.com.nix | 13 +++++++++++++ bert/services/http/index.nix | 1 + 2 files changed, 14 insertions(+) create mode 100644 bert/services/http/files.chandlerswift.com.nix diff --git a/bert/services/http/files.chandlerswift.com.nix b/bert/services/http/files.chandlerswift.com.nix new file mode 100644 index 0000000..aad3102 --- /dev/null +++ b/bert/services/http/files.chandlerswift.com.nix @@ -0,0 +1,13 @@ + +{ + services.caddy.virtualHosts."files.chandlerswift.com".extraConfig = '' + encode zstd gzip + file_server + root * /srv/files.chandlerswift.com + ''; + systemd.tmpfiles.settings."10-files-chandlerswift-com" = { + "/srv/files.chandlerswift.com" = { + d = {}; + }; + }; +} diff --git a/bert/services/http/index.nix b/bert/services/http/index.nix index 9c65855..c294d53 100644 --- a/bert/services/http/index.nix +++ b/bert/services/http/index.nix @@ -1,5 +1,6 @@ { imports = [ + ./files.chandlerswift.com.nix ./home.chandlerswift.com.nix ./maps.chandlerswift.com.nix ./stjohnscccc.org.nix