added caddy
This commit is contained in:
parent
03774d3c80
commit
e362c39a63
3 changed files with 22 additions and 1 deletions
20
hosts/Anton/caddy.nix
Normal file
20
hosts/Anton/caddy.nix
Normal 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
|
||||
#}
|
||||
|
||||
};
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
imports = [
|
||||
|
||||
./caddy.nix
|
||||
./disko.nix
|
||||
./data.nix
|
||||
./firewall.nix
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22 80 443 3000 ];
|
||||
allowedUDPPorts = [ 22 ];
|
||||
allowedUDPPorts = [ 22 80 443 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue