mirror of
https://github.com/callumio/nixfiles.git
synced 2025-12-17 03:29:20 +00:00
parent
09787eec8f
commit
5640ce5d13
6 changed files with 89 additions and 5 deletions
34
hosts/hermes/copyparty.nix
Normal file
34
hosts/hermes/copyparty.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue