From 1ffea307409d72cf2d8ac91475dce44c98c8956a Mon Sep 17 00:00:00 2001 From: Isabella Bastaja Date: Tue, 1 Sep 2026 15:46:19 +0200 Subject: tower: bring back static.sorre.xyz --- hosts/tower/web/caddy.nix | 5 +++++ hosts/tower/web/default.nix | 1 - hosts/tower/web/static.nix | 12 ------------ 3 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 hosts/tower/web/static.nix (limited to 'hosts/tower/web') diff --git a/hosts/tower/web/caddy.nix b/hosts/tower/web/caddy.nix index 21e564b..59c5353 100644 --- a/hosts/tower/web/caddy.nix +++ b/hosts/tower/web/caddy.nix @@ -115,6 +115,11 @@ in } ''; }; + + "static.sorre.xyz".extraConfig = '' + root /var/lib/www/static + file_server + ''; }; }; diff --git a/hosts/tower/web/default.nix b/hosts/tower/web/default.nix index 3e8c046..bd8bbeb 100644 --- a/hosts/tower/web/default.nix +++ b/hosts/tower/web/default.nix @@ -2,7 +2,6 @@ { imports = [ ./git.nix - # ./static.nix ./navidrome.nix ./vaultwarden.nix ./caddy.nix diff --git a/hosts/tower/web/static.nix b/hosts/tower/web/static.nix deleted file mode 100644 index d73d566..0000000 --- a/hosts/tower/web/static.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ ... }: -{ - services.nginx = { - enable = true; - - virtualHosts."static.sorre.xyz" = { - # enableACME = true; - # forceSSL = true; - root = "/var/www/static"; - }; - }; -} -- cgit v1.3.1