Server: add traefik
This commit is contained in:
parent
efafd187d9
commit
329ac39050
2 changed files with 17 additions and 0 deletions
|
|
@ -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
16
roles/server/traefik.nix
Normal 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 ];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue