hetzner-vpn2: serve /media/ on hyperhive.darkest.space from /var/lib/hyperhive-media
This commit is contained in:
parent
0bf97422cc
commit
161c42b2fa
1 changed files with 6 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ in
|
||||||
defaults.email = "acme@zerforschen.plus";
|
defaults.email = "acme@zerforschen.plus";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [ "d /var/lib/hyperhive-media 0755 root root -" ];
|
||||||
|
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
nginx.serviceConfig.SupplementaryGroups = [ "anubis" ];
|
nginx.serviceConfig.SupplementaryGroups = [ "anubis" ];
|
||||||
anubis-main.serviceConfig.SupplementaryGroups = [ "nginx" ];
|
anubis-main.serviceConfig.SupplementaryGroups = [ "nginx" ];
|
||||||
|
|
@ -51,6 +53,10 @@ in
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
root = hyperhive-website.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
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" = {
|
"trollhive.monster" = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue