feat(copyparty): trust reverse proxy headers

This commit is contained in:
2026-08-22 13:36:30 -04:00
parent 0781c7cb30
commit 4d77bebf25
4 changed files with 111 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
{ pkgs, ... }:
let
reverseProxyAddress = "10.23.20.109";
in
# pikachu — AZW ME Pro server.
# Disk layout is in ./disk.nix.
# `fileSystems` for the root disk are derived from it.
@@ -91,6 +94,7 @@
enable = true;
vlan = 20;
mac = "02:98:64:5a:07:4f";
endpoint.address = reverseProxyAddress;
};
guests.copyparty = {
@@ -103,6 +107,7 @@
enable = true;
host = "files.alexion.dev";
port = 3923;
trustedSources = [ "${reverseProxyAddress}/32" ];
};
volumes = {
"/inbox" = {