fix(sunshine): open firewall
This commit is contained in:
parent
650c78c74a
commit
c5008603c6
1 changed files with 15 additions and 0 deletions
|
@ -43,12 +43,27 @@
|
|||
environment.systemPackages = [ pkgs.android-tools ];
|
||||
})
|
||||
(lib.mkIf config.desktop.enableSunshine {
|
||||
networking.firewall.allowedTCPPortRanges = [
|
||||
{
|
||||
from = 47984;
|
||||
to = 47990;
|
||||
}
|
||||
];
|
||||
networking.firewall.allowedUDPPortRanges = [
|
||||
{
|
||||
from = 47998;
|
||||
to = 48000;
|
||||
}
|
||||
];
|
||||
networking.firewall.allowedTCPPorts = [ 48010 ];
|
||||
services.sunshine = {
|
||||
enable = true;
|
||||
capSysAdmin = true;
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
sunshine_name = config.system.hostname;
|
||||
port = 48989; # default
|
||||
origin_web_ui_allowed = "wan";
|
||||
};
|
||||
applications = { };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue