services.privoxy: add ssh-tunnel
This commit is contained in:
parent
c63134ca35
commit
a21809d989
1 changed files with 16 additions and 6 deletions
|
@ -1,10 +1,20 @@
|
||||||
{ ... }: {
|
{ pkgs, ... }: {
|
||||||
services.privoxy = {
|
services = {
|
||||||
enable = true;
|
privoxy = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
enable-edit-actions = true;
|
enable-edit-actions = true;
|
||||||
forward-socks5 = "/ 127.0.0.1:1337 .";
|
forward-socks5 = "/ 127.0.0.1:1337 .";
|
||||||
|
listen-address = "localhost:8118";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
ssh-tunnel = {
|
||||||
|
enable = true;
|
||||||
|
server = "infinidoge@server.doge-inc.net -p 245 -i /home/infinidoge/.ssh/id_ed25519";
|
||||||
|
requiredBy = [ "privoxy.service" ];
|
||||||
|
forwards.dynamic = [ 1337 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue