0e3858b5e5
This lets each service declare their backup paths together with the configuration for the service, which is a lot more sensible than what we had before. Fixes b/147 Change-Id: If76fe62639f4cc0e6fbb63a2959d584479d8f0fb Reviewed-on: https://cl.tvl.fyi/c/depot/+/3583 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
22 lines
447 B
Nix
22 lines
447 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./base.nix
|
|
];
|
|
|
|
config = {
|
|
# Ensure the directory for deployment diffs exists.
|
|
systemd.tmpfiles.rules = [
|
|
"d /var/html/deploys.tvl.fyi/diff 0755 nginx nginx -"
|
|
];
|
|
|
|
services.nginx.virtualHosts."deploys.tvl.fyi" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
root = "/var/html/deploys.tvl.fyi";
|
|
};
|
|
|
|
services.depot.restic.paths = [ "/var/html/deploys.tvl.fyi" ];
|
|
};
|
|
}
|