feat(vps): add restic REST server

- Enable restic REST server service
- Add Caddy route for restic REST server
This commit is contained in:
toast 2026-02-06 11:35:07 +00:00
parent cb479d8e7d
commit 569c2037e1
3 changed files with 12 additions and 0 deletions

View file

@ -20,6 +20,9 @@
handle_path /trilium/* {
reverse_proxy http://127.0.0.1:${toString config.services.trilium-server.port}
}
handle_path /restic/* {
reverse_proxy http://${toString config.services.restic.server.listenAddress}
}
'';
};
}

View file

@ -8,5 +8,6 @@
./forgejo.nix
./trilium-server.nix
./restic.nix
./restic-rest-server.nix
];
}

View file

@ -0,0 +1,8 @@
{
services.restic.server = {
enable = true;
appendOnly = true;
listenAddress = "127.0.0.1:3003";
extraFlags = [ "--no-auth" ];
};
}