Update copyparty config

This commit is contained in:
2025-12-01 01:38:40 +01:00
parent 31aa73fcee
commit 6976180fd4

View File

@@ -1,3 +1,7 @@
{ config, ... }:
let
username = config.var.username;
in
{ {
services = { services = {
copyparty = { copyparty = {
@@ -7,6 +11,39 @@
e2dsa = true; e2dsa = true;
no-cfg = true; no-cfg = true;
}; };
accounts = {
"${username}" = {
passwordFile = "/run/keys/copyparty-kiri-pass";
};
};
groups = {
"admin" = [ "${username}" ];
};
volumes = {
"/public" = {
path = "/var/lib/copyparty/public";
access = {
r = "*";
rwmd = "@admin";
};
flags = {
fk = 4;
scan = 60;
};
};
"/" = {
path = "/var/lib/copyparty/private";
access = {
rwmd = "@admin";
};
};
};
}; };
caddy.virtualHosts."files.jelles.net".extraConfig = "reverse_proxy :3923"; caddy.virtualHosts."files.jelles.net".extraConfig = "reverse_proxy :3923";