feat(mx): isolate rustdesk configuration into separate module

Moved rustdesk-server settings from `default.nix` to a dedicated module `rustdesk.nix`. This improves configuration structure and ensures better modularity for maintainability.
This commit is contained in:
Harald Hoyer 2025-02-24 10:08:19 +01:00
parent 3778bf29d0
commit 64f48c5969
2 changed files with 27 additions and 3 deletions

View file

@ -14,12 +14,10 @@
./nginx.nix
./postgresql.nix
./rspamd.nix
./rustdesk.nix
./users.nix
];
services.rustdesk-server.enable = true;
services.rustdesk-server.signal.relayHosts = [ "mx.surfsite.org" ];
metacfg = {
base.enable = true;
nix.enable = true;

View file

@ -0,0 +1,26 @@
{
pkgs,
lib,
config,
...
}:
{
services.rustdesk-server.enable = true;
services.rustdesk-server.signal.relayHosts = [ "mx.surfsite.org" ];
services.nginx.virtualHosts."rustdesk.hoyer.world" = {
enableACME = false;
useACMEHost = "hoyer.world";
forceSSL = false;
locations = {
"/ws/id" = {
proxyPass = "http://127.0.0.1:21118";
proxyWebsockets = true;
};
"/ws/relay" = {
proxyPass = "http://127.0.0.1:21119";
proxyWebsockets = true;
};
};
};
}