initial commit. after fucking it up once
This commit is contained in:
commit
b7cea98e99
48 changed files with 3437 additions and 0 deletions
19
services/website/website-firewall.mod.nix
Normal file
19
services/website/website-firewall.mod.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
aspartame.modules = [
|
||||
({
|
||||
services.fail2ban.enable = true;
|
||||
networking.firewall = {
|
||||
interfaces.eth0.allowedTCPPorts = [
|
||||
80
|
||||
222 # this is for forgejo
|
||||
443
|
||||
];
|
||||
};
|
||||
})
|
||||
];
|
||||
fructose.modules = [
|
||||
{
|
||||
networking.firewall.interfaces.eth0.allowedTCPPorts = [ 222 ]; # when someones tries to ssh to forgejo, it goes -> aspartame -> fructose -> forgejo-container --- so fructose also needs this port open.
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue