Files
nixos-config/modules/nixos/selfhosted/send.nix
2025-03-13 19:33:21 +05:30

34 lines
606 B
Nix

{
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;
};
};
};
};
};
};
}