docs: improve some parts

This commit is contained in:
FUFSoB committed 2026-09-25 23:23:54 +05:00
1 parent 878983147c
commit e4458dcae8
34 files changed
+932 -123

No files matched your search

+3 -39
View File
@@ -7,14 +7,6 @@ listed. Everything runs in global TUN mode, so every app on the host follows the
```nix
{ ... }:
let
# Geosite "youtube" can miss the video and API hosts.
youtubeDomains = [
"googlevideo.com"
"gvt1.com"
"ytimg.com"
"ggpht.com"
"youtubei.googleapis.com"
];
# Telegram apps dial their data centres by IP, so names alone do not catch them
# (https://core.telegram.org/resources/cidr.txt).
telegramIps = [
@@ -41,8 +33,6 @@ in
proxy = {
enable = true;
outbounds = [ { tag = "primary"; urlFile = "/run/secrets/proxy-primary-url"; } ];
tun.enable = true;
autostart = "tun";
routing = {
# Unlisted sites leave directly, where zapret2 unblocks what DPI blocks.
@@ -52,24 +42,15 @@ in
# Checked in order; the first match wins.
rules = [
# Sites that reject both this host's and the VPS's networks.
{
outbound = "ssh-proxy";
geosites = [ "pixiv" "twitter" ];
}
# Video throttled per connection by destination IP, which zapret cannot fix.
# One exit for the whole session: video URLs are bound to the IP that asked.
{
outbound = "warp";
domains = youtubeDomains;
geosites = [ "youtube" ];
}
# A CDN that stalls through WARP but runs at full speed directly.
{
outbound = "direct";
domains = [ "video-cdn.example" ];
}
# Russian services that refuse the VPS's foreign IP.
# To mask your IP from Russian services
{
outbound = "warp";
geosites = [ "category-ru" ];
@@ -81,13 +62,12 @@ in
proxy = {
geosites = [ "openai" "anthropic" "telegram" "netflix" ];
ips = telegramIps;
# WARP registers through the proxy: its API is blocked directly.
# WARP registers through the proxy: its API is blocked directly in Russia.
domains = [ "api.cloudflareclient.com" ];
};
};
# For blocked sites no list names yet. YouTube is pinned to WARP above, so it
# is kept out of the probes.
# For blocked sites no list names yet. YouTube is pinned to WARP above, so it is kept out of the probes.
autoProxy = {
enable = true;
exclude = [ "googlevideo.com" "gvt1.com" ];
@@ -111,27 +91,11 @@ in
hostKeyFile = "/run/secrets/proxy-ssh-known-hosts";
};
# Tor through the proxy, since this network blocks Tor.
tor = {
enable = true;
asOutbound = true;
upstream = "proxy";
};
zapret = {
enable = true;
engine = "zapret2";
};
};
# autoProxy probes in bursts (seconds of CPU, a few hundred MB). On a busy host, keep
# it from competing with real work.
systemd.services.proxy-suite-autoproxy.serviceConfig = {
CPUWeight = 10;
IOWeight = 10;
Nice = 19;
MemoryHigh = "200M";
};
}
```