24 lines
484 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|