nixos-selfhost/tunnel.nix
2024-03-25 00:18:55 +01:00

20 lines
377 B
Nix

{...}:
{
services.nginx = {
enable = true;
clientMaxBodySize = "10g";
};
services.cloudflared = {
enable = true;
tunnels = {
"tulpan" = {
credentialsFile = "/etc/nixos/.secrets/tulpan-tunnel.json";
default = "http_status:404";
ingress = {
"*.sondell.org" = "http://localhost:80";
};
};
};
};
}