From f38e8d5217f57bf07a32b839952a191b1d73e0da Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 21 Sep 2024 23:33:15 +0200 Subject: [PATCH] yuzuru/static-sites: Add share --- machines/yuzuru/services/static-sites.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/machines/yuzuru/services/static-sites.nix b/machines/yuzuru/services/static-sites.nix index 9889e18..ffa17d3 100644 --- a/machines/yuzuru/services/static-sites.nix +++ b/machines/yuzuru/services/static-sites.nix @@ -18,6 +18,10 @@ globalRedirect = "https://brennende.autos/"; }; + + "share.sbruder.de".locations."= /".extraConfig = '' + autoindex off; + ''; }; sbruder.static-webserver.vhosts = { @@ -50,5 +54,18 @@ ]; user.name = "salespoint"; }; + + "share.sbruder.de" = { + redirects = [ ]; + user.name = "share"; + }; }; + + services.nginx-interactive-index.virtualHosts = { + "share.sbruder.de".locations."/".enable = true; + }; + + sbruder.restic.backups.system.extraExcludes = [ + config.sbruder.static-webserver.vhosts."share.sbruder.de".root + ]; }