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

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 ];
}