Blocky: Difference between revisions

imported>TAKYON
Blocky is a DNS proxy and ad-blocker for the local network written in Go.
 
imported>TAKYON
m Correcting formatting errors
Line 4: Line 4:


== Configuration Examples ==
== Configuration Examples ==
<code>services.blocky = {
<syntaxHighlight lang=nix>
services.blocky = {
     enable = true;
     enable = true;
     settings = {
     settings = {
Line 31: Line 32:
       };
       };
     };
     };
   };</code>
   };
</syntaxHighlight>




Line 37: Line 39:
To add a cache of DNS Requests and Prefetching add:
To add a cache of DNS Requests and Prefetching add:


<code>caching = {
<syntaxHighlight lang=nix>
caching = {
   minTime = "5m";
   minTime = "5m";
   maxTime = "30m"
   maxTime = "30m"
   prefetching = true;
   prefetching = true;
};</code>
};
</syntaxHighlight>