3proxy: Difference between revisions

imported from old wiki
Jopejoe1 (talk | contribs)
Format an clean up the nix code
 
Line 8: Line 8:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
{
   services._3proxy = {
   services._3proxy = {
     enable = true;
     enable = true;
Line 13: Line 14:
       {
       {
         type = "socks";
         type = "socks";
          auth = [ "strong" ];
        auth = [ "strong" ];
          acl = [ {
        acl = [
          {
             rule = "allow";
             rule = "allow";
             users = [ "test1" ];
             users = [ "test1" ];
Line 30: Line 32:
     '';
     '';
   };
   };
}
</syntaxhighlight>
</syntaxhighlight>