mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2026-03-23 01:06:41 +00:00
feat(vps): add restic REST server
- Enable restic REST server service - Add Caddy route for restic REST server
This commit is contained in:
parent
cb479d8e7d
commit
569c2037e1
3 changed files with 12 additions and 0 deletions
|
|
@ -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}
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,5 +8,6 @@
|
|||
./forgejo.nix
|
||||
./trilium-server.nix
|
||||
./restic.nix
|
||||
./restic-rest-server.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
8
hosts/vps/modules/services/restic-rest-server.nix
Normal file
8
hosts/vps/modules/services/restic-rest-server.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
services.restic.server = {
|
||||
enable = true;
|
||||
appendOnly = true;
|
||||
listenAddress = "127.0.0.1:3003";
|
||||
extraFlags = [ "--no-auth" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue