summaryrefslogtreecommitdiffstats
path: root/hosts/poweredge/filebrowser.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-10-30 18:04:24 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-10-30 18:04:24 -0500
commit382ef120eadf53cc6c8c712a9244697897548998 (patch)
tree215065d401cdeece7711617a9c6551164c7340d9 /hosts/poweredge/filebrowser.nix
parent4aaf5115bab2f16505d7e076216486200cff28dd (diff)
downloadnixos-382ef120eadf53cc6c8c712a9244697897548998.tar.xz
nixos-382ef120eadf53cc6c8c712a9244697897548998.zip
remove private caddy port for filebrowser and expose unproxied port
Diffstat (limited to 'hosts/poweredge/filebrowser.nix')
-rw-r--r--hosts/poweredge/filebrowser.nix18
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";