cloudflared for nixnas
This commit is contained in:
parent
6061ba3288
commit
0996300740
1 changed files with 15 additions and 0 deletions
15
cloudflared.nix
Normal file
15
cloudflared.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf (config.networking.hostName == "nixnas") {
|
||||
services.cloudflared = {
|
||||
enable = true;
|
||||
certificateFile = "/Block/cloudflare/cert.pem";
|
||||
tunnels.mine = {
|
||||
credentialsFile = "/Block/cloudflare/2d530440-2db8-491a-bb61-7941315d4cb9.json";
|
||||
default = "http_status:404";
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue