opening firewall
This commit is contained in:
parent
2e776fb9ad
commit
ffc3770839
@ -6,13 +6,12 @@ in
|
|||||||
{
|
{
|
||||||
options.my.servers.audiobookshelf = setup.mkOptions "audiobookshelf" "audiobooks" 5687;
|
options.my.servers.audiobookshelf = setup.mkOptions "audiobookshelf" "audiobooks" 5687;
|
||||||
config = {
|
config = {
|
||||||
# always opening port to upload books
|
|
||||||
networking.firewall.allowedTCPPorts = [ cfg.port ];
|
|
||||||
services = {
|
services = {
|
||||||
audiobookshelf = lib.mkIf cfg.enable {
|
audiobookshelf = lib.mkIf cfg.enable {
|
||||||
inherit (cfg) port;
|
inherit (cfg) port;
|
||||||
enable = true;
|
enable = true;
|
||||||
group = "piracy";
|
group = "piracy";
|
||||||
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
|
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
|
||||||
setup.proxy {
|
setup.proxy {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user