diff options
author | pennae <github@quasiparticle.net> | 2022-08-30 13:08:40 +0200 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2022-08-31 16:27:25 +0200 |
commit | 7d102d113abd84dd29bed71cd589f1c68a7f7f3d (patch) | |
tree | bbf4f554e776a8620007cdec85b069a2af78692c /nixos/modules/services/networking/3proxy.nix | |
parent | 0cfcb5908cc7164236f78cd21e02cc168dd028ac (diff) |
nixos/*: convert multiline inline code to listings
presumably it was not intended to have these blocks rendered inline, and markdown conversion would be messy as well.
Diffstat (limited to 'nixos/modules/services/networking/3proxy.nix')
-rw-r--r-- | nixos/modules/services/networking/3proxy.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/modules/services/networking/3proxy.nix b/nixos/modules/services/networking/3proxy.nix index 9fc1dac7c280c..fb11f5bc05ebc 100644 --- a/nixos/modules/services/networking/3proxy.nix +++ b/nixos/modules/services/networking/3proxy.nix @@ -23,17 +23,17 @@ in { Example users file with plain-text passwords: - <literal> + <programlisting> test1:CL:password1 test2:CL:password2 - </literal> + </programlisting> Example users file with md5-crypted passwords: - <literal> + <programlisting> test1:CR:$1$tFkisVd2$1GA8JXkRmTXdLDytM/i3a1 test2:CR:$1$rkpibm5J$Aq1.9VtYAn0JrqZ8M.1ME. - </literal> + </programlisting> You can generate md5-crypted passwords via https://unix4lyfe.org/crypt/ Note that htpasswd tool generates incompatible md5-crypted passwords. @@ -130,7 +130,7 @@ in { Double authentication is possible, e.g. - <literal> + <programlisting> { auth = [ "iponly" "strong" ]; acl = [ @@ -144,7 +144,7 @@ in { } ]; } - </literal> + </programlisting> In this example strong username authentication is not required to access 192.168.0.0/16. ''; }; |