Introduce agenix secrets management
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
./hardware-configuration.nix
|
||||
../../configuration/proxmox-vm
|
||||
|
||||
./secrets
|
||||
|
||||
./restic-server.nix
|
||||
];
|
||||
|
||||
|
@@ -8,6 +8,15 @@
|
||||
listenAddress = "[::1]:43242";
|
||||
};
|
||||
|
||||
# restic rest server does not support --htpasswd-file in the current version of nixpkgs
|
||||
# until then we copy the secrets to the common location
|
||||
age.secrets.restic-server-cyan-htpasswd = {
|
||||
path = "/mnt/clerie-backup/cyan/.htpasswd";
|
||||
symlink = false;
|
||||
owner = "restic";
|
||||
group = "restic";
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."cyan.backup.clerie.de" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
5
hosts/clerie-backup/secrets/default.nix
Normal file
5
hosts/clerie-backup/secrets/default.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
age.secrets.restic-server-cyan-htpasswd.file = ./restic-server-cyan-htpasswd.age;
|
||||
}
|
10
hosts/clerie-backup/secrets/restic-server-cyan-htpasswd.age
Normal file
10
hosts/clerie-backup/secrets/restic-server-cyan-htpasswd.age
Normal file
@@ -0,0 +1,10 @@
|
||||
age-encryption.org/v1
|
||||
-> ssh-ed25519 HwR33w zPP2GxmlabgLkMMW9DqpdAiMUXTPTwZ8Y1aHAKoOUU4
|
||||
oqGSUZMztWoercL/DD/Qagn8VE4U8KPzPrjmLXHGb5I
|
||||
-> ssh-ed25519 ILP4Ew cLYC1UCOo1XSvnViQZfXKUClDkO9SZZZsHR2yxGm2Dc
|
||||
1cyw/j8XQk/ztE6fEtZtjQ8cX4mkF5FrAWgZfyENV4c
|
||||
-> P-grease uB// Mn0<WD U%HyAy#v
|
||||
X5sX6sC2qXAKtRCcLA0TMmpSoVCoCYlcz+efVNPfala+Yh+z3kXjZIoVohtBc8Bi
|
||||
Jy8fizfJEv6u7bPhdoytSEoQtMiTMw
|
||||
--- /ymN2GqfIuI/2cqu7PFU0oO6RYfp3ZX1b9AX/YA2xJs
|
||||
<08>fh<66>7<EFBFBD><37><EFBFBD>f`<60><>:ȗUJ<>JXZ<58><5A><EFBFBD>(<11><><EFBFBD>꺯A<EABAAF>_<EFBFBD>a<EFBFBD>kiS<01><><EFBFBD>gK<67>esO<73><4F>)<29><>6ncQFH<46><48>r<EFBFBD><72>P<EFBFBD><29<06><><EFBFBD>{<7B>:<3A>9
|
Reference in New Issue
Block a user