mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-01 19:43:56 +00:00
58 lines
1,017 B
Nix
58 lines
1,017 B
Nix
{
|
|
x,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
with x;
|
|
let
|
|
cfg = config.module.services.zapret;
|
|
in
|
|
{
|
|
options = {
|
|
module.services.zapret = {
|
|
enable = mkBool;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.zapret = True // {
|
|
params = [
|
|
"--dpi-desync=fake"
|
|
"--dpi-desync-ttl=8"
|
|
"-dpi-desync-repeats=15"
|
|
];
|
|
httpMode = "full";
|
|
udpSupport = true;
|
|
udpPorts = [ "50000:50099" ];
|
|
whitelist = [
|
|
"animego.org"
|
|
"github.io"
|
|
"proton.me"
|
|
"youtube.com"
|
|
"googlevideo.com"
|
|
"ytimg.com"
|
|
"youtu.be"
|
|
"rutracker.org"
|
|
"rutracker.cc"
|
|
"rutrk.org"
|
|
"t-ru.org"
|
|
"medium.com"
|
|
"dis.gd"
|
|
"discord.co"
|
|
"discord.com"
|
|
"discord.dev"
|
|
"discord.gg"
|
|
"discord.gift"
|
|
"discord.media"
|
|
"discord.new"
|
|
"discordapp.com"
|
|
"discordapp.net"
|
|
"discordcdn.com"
|
|
"discordstatus.com"
|
|
];
|
|
};
|
|
};
|
|
}
|