nginx: Create cryptographically secure htpasswd file

Requires the `htpasswd` command available from `pkgs.apacheHttpd`.
This commit is contained in:
Victor Engmark 2024-10-08 23:14:26 +13:00
parent fef047eba5
commit 7d3b47a0fa
No known key found for this signature in database
2 changed files with 2 additions and 8 deletions

View File

@ -30,10 +30,7 @@ with lib;
default = null;
description = ''
Basic Auth password file for a vhost.
Can be created via: {command}`htpasswd -c FILENAME USERNAME`.
WARNING: The generate file contains the users' passwords in a
non-cryptographically-securely hashed way.
Can be created by running {command}`nix-shell --packages apacheHttpd --run 'htpasswd -B -c FILENAME USERNAME'`.
'';
};

View File

@ -345,10 +345,7 @@ with lib;
default = null;
description = ''
Basic Auth password file for a vhost.
Can be created via: {command}`htpasswd -c FILENAME USERNAME`.
WARNING: The generate file contains the users' passwords in a
non-cryptographically-securely hashed way.
Can be created by running {command}`nix-shell --packages apacheHttpd --run 'htpasswd -B -c FILENAME USERNAME'`.
'';
};