added caddy

This commit is contained in:
willifan 2024-07-28 18:14:30 +02:00
parent 03774d3c80
commit e362c39a63
3 changed files with 22 additions and 1 deletions

20
hosts/Anton/caddy.nix Normal file
View file

@ -0,0 +1,20 @@
{ pkgs, ... }:
{
services.caddy = {
enable = true;
configFile = pkgs.writeText "Caddyfile" ''
https://git.huwe.mooo.com {
reverse_proxy localhost:3000
}
'';
#https://files.huwe.mooo.com {
# reverse_proxy localhost:444
#}
#https://cal.huwe.mooo.com {
# reverse_proxy localhost:5232
#}
};
}

View file

@ -3,6 +3,7 @@
imports = [
./caddy.nix
./disko.nix
./data.nix
./firewall.nix

View file

@ -3,6 +3,6 @@
networking.firewall = {
enable = true;
allowedTCPPorts = [ 22 80 443 3000 ];
allowedUDPPorts = [ 22 ];
allowedUDPPorts = [ 22 80 443 ];
};
}