The CloudflareD commit. To be undone immediately
This commit is contained in:
parent
284e2cad5b
commit
fba04cf0a1
3 changed files with 17 additions and 1 deletions
16
nixos/server/cloudflared.nix
Normal file
16
nixos/server/cloudflared.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{pkgs, outputs, ...}: {
|
||||
services.cloudflared = {
|
||||
enable = true;
|
||||
tunnels = {
|
||||
"${outputs.secrets.flareTunnelName}" = {
|
||||
credentialsFile = "${pkgs.writeText "credentials" outputs.secrets.flareTunnelApi}";
|
||||
default = "http_status:404";
|
||||
ingress = {
|
||||
"*.${outputs.secrets.jimDomain}" = {
|
||||
service = "https://localhost:443";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue