parent
f037d1dd80
commit
2637817c9c
20 changed files with 8 additions and 12 deletions
39
hosts/cl-00-00/system/configuration/traefik.nix
Executable file
39
hosts/cl-00-00/system/configuration/traefik.nix
Executable file
|
|
@ -0,0 +1,39 @@
|
|||
{ ...
|
||||
}:
|
||||
|
||||
{
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
|
||||
services.traefik = {
|
||||
enable = true;
|
||||
dataDir = "/var/lib/traefik";
|
||||
|
||||
staticConfigOptions = {
|
||||
global = {
|
||||
checkNewVersion = false;
|
||||
sendAnonymousUsage = false;
|
||||
};
|
||||
|
||||
entryPoints = {
|
||||
web = {
|
||||
address = ":80";
|
||||
http.redirections.entrypoint = {
|
||||
to = "websecure";
|
||||
scheme = "https";
|
||||
};
|
||||
};
|
||||
websecure.address = ":443";
|
||||
};
|
||||
|
||||
certificatesResolvers = {
|
||||
letsencrypt = {
|
||||
acme = {
|
||||
email = "finnliry+acme-cl-00-00@gmail.com";
|
||||
storage = "/var/lib/traefik/acme.json";
|
||||
httpChallenge = { entryPoint = "web"; };
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue