Watch
0
1
Fork
You've already forked nixos-configuration
0

hetzner-vpn2: serve /media/ on hyperhive.darkest.space from /var/lib/hyperhive-media

This commit is contained in:
müde 2026-11-11 23:40:47 +01:00
commit 161c42b2fa

View file

@ -15,6 +15,8 @@ in
defaults.email = "acme@zerforschen.plus";
};
systemd.tmpfiles.rules = [ "d /var/lib/hyperhive-media 0755 root root -" ];
systemd.services = {
nginx.serviceConfig.SupplementaryGroups = [ "anubis" ];
anubis-main.serviceConfig.SupplementaryGroups = [ "nginx" ];
@ -51,6 +53,10 @@ in
forceSSL = true;
enableACME = true;
root = hyperhive-website.packages.${pkgs.stdenv.hostPlatform.system}.default;
# the site root is a store path (replaced every deploy), so large
# media lives in its own dir, uploaded by hand:
# scp gource-hyperhive.webm root@hetzner-vpn2:/var/lib/hyperhive-media/
locations."/media/".alias = "/var/lib/hyperhive-media/";
};
"trollhive.monster" = {