hosts/backup-4: use secrets
This commit is contained in:
parent
809e8652ff
commit
1cd9f1e52d
@ -8,6 +8,15 @@
|
|||||||
listenAddress = "[::1]:43242";
|
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-magenta-htpasswd = {
|
||||||
|
path = "/mnt/clerie-backup/magenta/.htpasswd";
|
||||||
|
symlink = false;
|
||||||
|
owner = "restic";
|
||||||
|
group = "restic";
|
||||||
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."magenta.backup.clerie.de" = {
|
services.nginx.virtualHosts."magenta.backup.clerie.de" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
BIN
hosts/backup-4/secrets/restic-server-magenta-htpasswd.age
Normal file
BIN
hosts/backup-4/secrets/restic-server-magenta-htpasswd.age
Normal file
Binary file not shown.
1
hosts/backup-4/ssh.pub
Normal file
1
hosts/backup-4/ssh.pub
Normal file
@ -0,0 +1 @@
|
|||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILUaAo7yYjuVpWadxPqrUGrZWwLNltvc+PfOT8z36Eip
|
Loading…
Reference in New Issue
Block a user