mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-06 17:56:35 +05:30
34 lines
606 B
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|