nix-config/hosts/vps/modules/services/caddy.nix
lightly-toasted 569c2037e1 feat(vps): add restic REST server
- Enable restic REST server service
- Add Caddy route for restic REST server
2026-02-06 13:00:37 +00:00

28 lines
851 B
Nix

{ config, ... }:
{
services.caddy = {
enable = true;
# zipline
virtualHosts."i.toast.name".extraConfig = ''
reverse_proxy http://127.0.0.1:${toString config.services.zipline.settings.CORE_PORT}
'';
# forgejo
virtualHosts."git.toast.name".extraConfig = ''
reverse_proxy http://127.0.0.1:${toString config.services.forgejo.settings.server.HTTP_PORT}
'';
# tailscale
virtualHosts."vps.curl-pence.ts.net".extraConfig = ''
reverse_proxy /vaultwarden/* http://127.0.0.1:${toString config.services.vaultwarden.config.ROCKET_PORT}
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}
}
'';
};
}