Vaultwarden: Difference between revisions
No edit summary |
m add semicolon |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
services.vaultwarden = { | services.vaultwarden = { | ||
enable = true; | enable = true; | ||
backupDir = "/var/ | backupDir = "/var/local/vaultwarden/backup"; | ||
# in order to avoid having ADMIN_TOKEN in the nix store it can be also set with the help of an environment file | # in order to avoid having ADMIN_TOKEN in the nix store it can be also set with the help of an environment file | ||
# be aware that this file must be created by hand (or via secrets management like sops) | # be aware that this file must be created by hand (or via secrets management like sops) | ||
environmentFile = "/var/lib/vaultwarden/vaultwarden.env" | environmentFile = "/var/lib/vaultwarden/vaultwarden.env"; | ||
config = { | config = { | ||
# Refer to https://github.com/dani-garcia/vaultwarden/blob/main/.env.template | # Refer to https://github.com/dani-garcia/vaultwarden/blob/main/.env.template | ||
| Line 56: | Line 56: | ||
[[Category:Server]] | [[Category:Server]] | ||
[[Category:Security]] | [[Category:Security]] | ||
[[Category:Rust]] | |||