feat(copyparty): trust reverse proxy headers
This commit is contained in:
@@ -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" = {
|
||||
|
||||
Reference in New Issue
Block a user