feat: add send

This commit is contained in:
tux
2025-03-13 19:33:21 +05:30
parent aa45cbb61d
commit 5da37db69c

View File

@ -0,0 +1,33 @@
{
lib,
config,
...
}: {
services = {
send = {
enable = true;
port = 1443;
environment = {
DEFAULT_DOWNLOADS = 5;
DETECT_BASE_URL = true;
};
};
nginx = {
enable = lib.mkForce true;
virtualHosts = {
"share.tux.rs" = {
forceSSL = true;
useACMEHost = "tux.rs";
locations = {
"/" = {
proxyPass = "http://${config.services.send.host}:${toString config.services.send.port}";
proxyWebsockets = true;
};
};
};
};
};
};
}