Update
This commit is contained in:
parent
b855318c55
commit
e52f52f4da
14
hosts/server/cloudflared.nix
Normal file
14
hosts/server/cloudflared.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
services.cloudflared = {
|
||||
enable = true;
|
||||
tunnels = {
|
||||
"55ac0504-4ba0-4ea7-bf38-6d04ca7e45c3" = {
|
||||
credentialsFile = "/etc/cloudflaredpwd";
|
||||
default = "http_status:404";
|
||||
ingress = {
|
||||
"cloud.anotherhadi.com" = { service = "http://localhost:8080"; };
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -1,7 +1,14 @@
|
||||
{ pkgs, config, ... }:
|
||||
let variable = import ../../variables.nix;
|
||||
in {
|
||||
imports = [ ./hardware-configuration.nix ./openssh.nix ./nextcloud.nix ./firewall.nix ./nginx.nix ];
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./openssh.nix
|
||||
./nextcloud.nix
|
||||
./firewall.nix
|
||||
./nginx.nix
|
||||
./cloudflared.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
|
Loading…
Reference in New Issue
Block a user