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:
parent
3778bf29d0
commit
64f48c5969
|
@ -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;
|
||||
|
|
26
systems/x86_64-linux/mx/rustdesk.nix
Normal file
26
systems/x86_64-linux/mx/rustdesk.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue