nixos-config/nixos/services/deluge.nix

23 lines
442 B
Nix
Raw Permalink Normal View History

2023-10-04 23:47:46 +05:00
{ config, ... }:
{
services.deluge = {
enable = true;
2024-05-14 23:54:16 +05:00
web = {
enable = true;
port = 8112;
};
};
services.nginx.virtualHosts."deluge.comfycamp.space" = {
useACMEHost = "comfycamp.space";
forceSSL = true;
listenAddresses = [
"10.101.0.1"
];
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.deluge.web.port}";
proxyWebsockets = true;
};
2023-10-04 23:47:46 +05:00
};
}