Restic: Difference between revisions
improve wrapper example config |
m Added note for creating htpasswd file Tags: Mobile edit Mobile web edit Advanced mobile edit Visual edit |
||
| Line 22: | Line 22: | ||
Passing the <code>htpasswd</code> file should be done using one of the [[Comparison of secret managing schemes|secret management methods]]. | Passing the <code>htpasswd</code> file should be done using one of the [[Comparison of secret managing schemes|secret management methods]]. | ||
==== Creating a htpasswd file ==== | |||
A htpasswd file must be created using the <code>apacheHttpd</code> package. Assuming that you do not already have this package, you may run the following to generate the file using nix shell. Note that the file will be hidden due to the "." at the start of the file. | |||
<syntaxhighlight lang="console"> | |||
$ nix shell nixpkgs#apacheHttpd -c htpasswd -B -c .htpasswd YOUR_USERNAME | |||
</syntaxhighlight> | |||
== Security Wrapper == | == Security Wrapper == | ||