traefik: remove prod config
This commit is contained in:
parent
c51171a7b2
commit
51eaa177b6
1 changed files with 1 additions and 33 deletions
|
@ -1,14 +1,4 @@
|
||||||
{config, ...}: {
|
_: {
|
||||||
sops.secrets.cloudflare-api-key = {};
|
|
||||||
networking.firewall.allowedTCPPorts = [80 443];
|
|
||||||
systemd.services.traefik = {
|
|
||||||
environment = {
|
|
||||||
CLOUDFLARE_EMAIL = "jch0tm2e@notohh.dev";
|
|
||||||
};
|
|
||||||
serviceConfig = {
|
|
||||||
EnvironmentFile = [config.sops.secrets.cloudflare-api-key.path];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.traefik = {
|
services.traefik = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dynamicConfigOptions = {
|
dynamicConfigOptions = {
|
||||||
|
@ -42,28 +32,6 @@
|
||||||
websecure.address = ":443";
|
websecure.address = ":443";
|
||||||
web.address = ":80";
|
web.address = ":80";
|
||||||
};
|
};
|
||||||
certificatesResolvers = {
|
|
||||||
staging.acme = {
|
|
||||||
email = "x3xr6n66@notohh.dev";
|
|
||||||
storage = "/var/lib/traefik/acme.json";
|
|
||||||
caServer = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
|
||||||
dnsChallenge = {
|
|
||||||
provider = "cloudflare";
|
|
||||||
resolvers = ["1.1.1.1:53" "1.0.0.1:53"];
|
|
||||||
delayBeforeCheck = "0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
production.acme = {
|
|
||||||
email = "x3xr6n66@notohh.dev";
|
|
||||||
storage = "/var/lib/traefik/acme.json";
|
|
||||||
caServer = "https://acme-v02.api.letsencrypt.org/directory";
|
|
||||||
dnsChallenge = {
|
|
||||||
provider = "cloudflare";
|
|
||||||
resolvers = ["1.1.1.1:53" "1.0.0.1:53"];
|
|
||||||
delayBeforeCheck = "0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue