Server: add traefik

This commit is contained in:
Toast 2023-08-31 17:18:47 +02:00
parent efafd187d9
commit 329ac39050
2 changed files with 17 additions and 0 deletions

View file

@ -14,5 +14,6 @@
./beep.nix ./beep.nix
./wireguard.nix ./wireguard.nix
./tailscale.nix ./tailscale.nix
./traefik.nix
]; ];
} }

16
roles/server/traefik.nix Normal file
View file

@ -0,0 +1,16 @@
{ config, ... }:
{
services.traefik = {
enable = true;
staticConfigOptions = {
# Enable the web ui
api.insecure = true;
api.dashboard = true;
entryPoints = {
http = { address = ":80"; };
};
};
};
networking.firewall.allowedTCPPorts = [ 80 8080 ];
}