From 382ef120eadf53cc6c8c712a9244697897548998 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Fri, 30 Oct 2026 18:04:24 -0500 Subject: remove private caddy port for filebrowser and expose unproxied port --- hosts/poweredge/filebrowser.nix | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'hosts/poweredge/filebrowser.nix') diff --git a/hosts/poweredge/filebrowser.nix b/hosts/poweredge/filebrowser.nix index 818b3df..681a6a6 100644 --- a/hosts/poweredge/filebrowser.nix +++ b/hosts/poweredge/filebrowser.nix @@ -13,33 +13,21 @@ }; }; - config = { lib, pkg, config, ... }: let - publicPort = 9000; - in { + config = { lib, pkg, config, ... }: { # Network networking.interfaces.eth0.useDHCP = true; - networking.firewall.allowedTCPPorts = [ 80 publicPort ]; # Caddy (private + public) + networking.firewall.allowedTCPPorts = [ 80 8080 ]; # Caddy + filebrowser # Filebrowser services.filebrowser.enable = true; + services.filebrowser.settings.address = "0.0.0.0"; # Reverse proxy services.caddy = { enable = true; - # Private virtualHosts.":80".extraConfig = '' reverse_proxy localhost:8080 ''; - # Public (not sure why toString is needed but ok) - virtualHosts.":${toString publicPort}".extraConfig = '' - @shared { - path /share/* - path /static/* - path /api/public/* - } - - reverse_proxy @shared localhost:8080 - ''; }; system.stateVersion = "26.05"; -- cgit v1.3.1