diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-10-30 18:04:24 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-10-30 18:04:24 -0500 |
| commit | 382ef120eadf53cc6c8c712a9244697897548998 (patch) | |
| tree | 215065d401cdeece7711617a9c6551164c7340d9 | |
| parent | 4aaf5115bab2f16505d7e076216486200cff28dd (diff) | |
| download | nixos-382ef120eadf53cc6c8c712a9244697897548998.tar.xz nixos-382ef120eadf53cc6c8c712a9244697897548998.zip | |
remove private caddy port for filebrowser and expose unproxied port
| -rw-r--r-- | hosts/poweredge/filebrowser.nix | 18 |
1 files changed, 3 insertions, 15 deletions
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"; |
