copy party wooo
Some checks failed
/ ci (push) Has been cancelled

This commit is contained in:
Callum Leslie 2025-08-05 10:36:07 +01:00
parent 09787eec8f
commit 5640ce5d13
Signed by: cleslie
GPG key ID: D382C4AFEECEAA90
6 changed files with 89 additions and 5 deletions

View file

@ -0,0 +1,34 @@
{config, ...}: let
domain = "files.cleslie.uk";
in {
services = {
cloudflare-dyndns.domains = [domain];
copyparty = {
enable = true;
settings = {
i = "127.0.0.1";
p = [3210];
};
accounts = {
c.passwordFile = config.age.secrets.copyparty-c.path;
};
volumes = {
"/media" = {
path = "/var/lib/media/library";
access = {
r = "*";
rw = ["c"];
};
};
};
};
caddy.virtualHosts.${domain}.extraConfig = ''
reverse_proxy http://127.0.0.1:3210
'';
};
age.secrets."copyparty-c" = {
file = ../../secrets/copyparty-c.age;
mode = "400";
owner = "copyparty";
};
}

View file

@ -2,6 +2,7 @@
imports = [
./hardware-configuration.nix
./configuration.nix
./copyparty.nix
./ddns.nix
./quassel.nix
./fail2ban.nix