Files
proxy-suite-flake/docs/usage/.snippets/routing-1.nix
T
2026-09-25 23:23:54 +05:00

18 lines
459 B
Nix

{ config, lib, pkgs, ... }:
{
services.proxy-suite = {
enable = true;
proxy = {
enable = true;
outbounds = [ { tag = "my-vps"; urlFile = "/run/secrets/my-vps-url"; } ];
routing = {
default = "direct";
proxy.domains = [ "youtube.com" "googlevideo.com" ];
proxy.geosites = [ "instagram" ];
};
# Find blocked sites on its own, and route each one through an exit that reaches it.
autoProxy.enable = true;
};
};
}