feat(copyparty): trust reverse proxy headers

This commit was merged in pull request #54.
This commit is contained in:
2026-08-22 13:36:30 -04:00
parent 0781c7cb30
commit 2c6d586cf5
4 changed files with 109 additions and 2 deletions

View File

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