fireall + enabled services on miniserver
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
{ lib, config, pkgs, proxyReverse, ... }: {
|
||||
{ lib, config, pkgs, proxyReverse, ... }:
|
||||
let
|
||||
port = 9091;
|
||||
ports = [ port 51413 ];
|
||||
in {
|
||||
options.my.servers.qbittorrent.enable = lib.mkEnableOption "enable";
|
||||
config = lib.mkIf config.my.servers.qbittorrent.enable {
|
||||
systemd = {
|
||||
@@ -49,7 +53,11 @@
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts."xfwmrle6h6skqujbeizw.${config.my.domain}" =
|
||||
proxyReverse 9091 // { };
|
||||
proxyReverse port // { };
|
||||
};
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = ports;
|
||||
allowedUDPPorts = ports;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user