This repository has been archived on 2024-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
nixos/hosts/bebop/cloudflared.nix
Payas Relekar d53ffa80f7 cloudflared: run with user payas
To be able to access credentialsFile deployed by agenix
2023-06-04 23:37:31 +05:30

24 lines
484 B
Nix

{ config, pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
cloudflared
];
services.cloudflared = {
enable = true;
user = "payas";
tunnels = {
# bebop
"9beb722b-1e27-460e-bee2-1647e31eeb34" = {
credentialsFile = "/run/agenix/tunnel_bebop.json";
default = "http_status:404";
ingress = {
"bebop.bhankas.org" = {
service = "http://localhost:80";
};
};
};
};
};
}