This commit is contained in:
Hadi 2024-06-07 23:46:40 +02:00
parent b855318c55
commit e52f52f4da
2 changed files with 22 additions and 1 deletions

View 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"; };
};
};
};
};
}

View File

@ -1,7 +1,14 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
let variable = import ../../variables.nix; let variable = import ../../variables.nix;
in { 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 = { boot = {
loader.efi.canTouchEfiVariables = true; loader.efi.canTouchEfiVariables = true;