feat(send): install

This commit is contained in:
Will Holdsworth 2026-03-02 21:46:01 +11:00
parent cea5fc1df7
commit 143f1dafac
Signed by: will-holdsworth
SSH key fingerprint: SHA256:Ykee8aymMJNAiYeeEmiwcIzkA1wgd4v8OZcWGxjq12c
2 changed files with 29 additions and 0 deletions

View file

@ -23,6 +23,7 @@
"radarr" "radarr"
"radicale" "radicale"
"readarr" "readarr"
"send"
"sonarr" "sonarr"
"vaultwarden" "vaultwarden"
# keep-sorted end # keep-sorted end

View file

@ -0,0 +1,28 @@
let
port = 5020;
certloc = "/var/lib/acme/fi33.buzz";
in
{
services = {
send = {
enable = true;
inherit port;
baseUrl = "https://send.fi33.buzz";
environment = {
DEFAULT_EXPIRE_SECONDS = 360;
EXPIRE_TIMES_SECONDS = "360";
DOWNLOAD_COUNTS = "1";
MAX_DOWNLOADS = 1;
MAX_EXPIRE_SECONDS = 1024;
MAX_FILE_SIZE = 134217728;
};
};
caddy.virtualHosts."send.fi33.buzz".extraConfig = ''
reverse_proxy localhost:${toString port}
tls ${certloc}/cert.pem ${certloc}/key.pem {
protocols tls1.3
}
'';
};
}