This PR contains the following updates: | Package | Update | Change | |---|---|---| | [traefik](https://github.com/containous/traefik) | patch | `v3.7.5` → `v3.7.6` | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/12) for more information. --- ### Release Notes <details> <summary>containous/traefik (traefik)</summary> ### [`v3.7.6`](https://github.com/containous/traefik/blob/HEAD/CHANGELOG.md#v376-2026-06-30) [Compare Source](https://github.com/containous/traefik/compare/v3.7.6...v3.7.6) [All Commits](https://github.com/traefik/traefik/compare/v3.7.5...v3.7.6) **Bug fixes:** - **\[acme, logs]** Bump github.com/go-acme/lego/v5 ([#​13154](https://github.com/traefik/traefik/pull/13154) [@​ldez](https://github.com/ldez)) - **\[acme]** Bump github.com/go-acme/lego/v5 ([#​13359](https://github.com/traefik/traefik/pull/13359) [@​juliens](https://github.com/juliens)) - **\[k8s, k8s/ingress-nginx]** Fix ingress-nginx ssl passthrough status updates ([#​13212](https://github.com/traefik/traefik/pull/13212) [@​nickmnt](https://github.com/nickmnt)) - **\[k8s/gatewayapi]** Add missing Gateway API features in conformance tests ([#​13356](https://github.com/traefik/traefik/pull/13356) [@​AnatoleLucet](https://github.com/AnatoleLucet)) - **\[k8s/gatewayapi]** Avoid collisions for Gateway API services names ([#​13367](https://github.com/traefik/traefik/pull/13367) [@​rtribotte](https://github.com/rtribotte)) - **\[k8s/gatewayapi]** Ignore other gateways parentRefs and update route parent statuses only for managed gateways ([#​13397](https://github.com/traefik/traefik/pull/13397) [@​rtribotte](https://github.com/rtribotte)) - **\[k8s/ingress-nginx]** Configure retry according to buffering configuration ([#​13039](https://github.com/traefik/traefik/pull/13039) [@​rtribotte](https://github.com/rtribotte)) - **\[k8s/ingress-nginx]** Fix force-ssl-redirect routing 418 when TLS is terminated upstream ([#​13386](https://github.com/traefik/traefik/pull/13386) [@​carloslima](https://github.com/carloslima)) - **\[k8s]** Detect EndpointSlice condition changes ([#​13405](https://github.com/traefik/traefik/pull/13405) [@​kevinpollet](https://github.com/kevinpollet)) - **\[k8s]** Index Kubernetes EndpointSlice by service name ([#​13395](https://github.com/traefik/traefik/pull/13395) [@​kevinpollet](https://github.com/kevinpollet)) - **\[k8s]** Sort endpointslices to keep backend IPs consistent across rebuilds ([#​13406](https://github.com/traefik/traefik/pull/13406) [@​kevinpollet](https://github.com/kevinpollet)) - **\[kv]** Bump kvtools/redis to v1.2.1 ([#​13403](https://github.com/traefik/traefik/pull/13403) [@​ldez](https://github.com/ldez)) - **\[middleware, authentication]** Fix x-forwarded-port in forward-auth ([#​13344](https://github.com/traefik/traefik/pull/13344) [@​juliens](https://github.com/juliens)) - **\[middleware, k8s/gatewayapi]** Fix Gateway API redirect missing statuses ([#​13360](https://github.com/traefik/traefik/pull/13360) [@​AnatoleLucet](https://github.com/AnatoleLucet)) - **\[middleware, k8s/gatewayapi]** Fix Host header not being modified by RequestHeaderModifier ([#​12805](https://github.com/traefik/traefik/pull/12805) [@​mihuross](https://github.com/mihuross)) - **\[middleware, k8s/gatewayapi]** Fix request scheme derivation when Gateway API RequestRedirect omits scheme ([#​13347](https://github.com/traefik/traefik/pull/13347) [@​gndz07](https://github.com/gndz07)) - **\[middleware]** Fix CORS Max-Age set to 0 by default ([#​13371](https://github.com/traefik/traefik/pull/13371) [@​AnatoleLucet](https://github.com/AnatoleLucet)) - **\[middleware]** Fix CORS wildcard when allow-credentials is true ([#​13368](https://github.com/traefik/traefik/pull/13368) [@​AnatoleLucet](https://github.com/AnatoleLucet)) - **\[server]** Add an option to remove request headers with underscores ([#​13262](https://github.com/traefik/traefik/pull/13262) [@​youkoulayley](https://github.com/youkoulayley)) - **\[server]** Configurable max request header size ([#​13353](https://github.com/traefik/traefik/pull/13353) [@​juliens](https://github.com/juliens)) - **\[tls]** Fix nondeterministic TLS certificate selection on shared SAN ([#​13348](https://github.com/traefik/traefik/pull/13348) [@​rtribotte](https://github.com/rtribotte)) - **\[webui]** Bump axios to v1.18.0 ([#​13380](https://github.com/traefik/traefik/pull/13380) [@​gndz07](https://github.com/gndz07)) - **\[websocket]** Fix connection upgrades when backend server is using h2c scheme ([#​12967](https://github.com/traefik/traefik/pull/12967) [@​stffabi](https://github.com/stffabi)) **Documentation:** - **\[k8s/crd]** Fix broken CRD reference links in IngressRoute page ([#​13375](https://github.com/traefik/traefik/pull/13375) [@​s3onghyun](https://github.com/s3onghyun)) - **\[k8s/gatewayapi]** Remove experimental note for Gateway API/TLSRoute documentation ([#​13392](https://github.com/traefik/traefik/pull/13392) [@​jnoordsij](https://github.com/jnoordsij)) - **\[k8s/ingress-nginx]** Add Kubernetes Ingress NGINX to the providers list ([#​13372](https://github.com/traefik/traefik/pull/13372) [@​nmengin](https://github.com/nmengin)) - **\[k8s]** Align Helm chart documented values with chart v41 ([#​13366](https://github.com/traefik/traefik/pull/13366) [@​mloiseleur](https://github.com/mloiseleur)) - **\[middleware, authentication, k8s/ingress-nginx]** Clarify intentional auth-response-headers gating and absence of stripping incoming X-Forwarded-\* headers ([#​13342](https://github.com/traefik/traefik/pull/13342) [@​rtribotte](https://github.com/rtribotte)) - **\[middleware]** Clarify entryPoint middleware reference format ([#​13364](https://github.com/traefik/traefik/pull/13364) [@​mloiseleur](https://github.com/mloiseleur)) - **\[security]** Add HTTP/2 header memory exhaustion security documentation ([#​13381](https://github.com/traefik/traefik/pull/13381) [@​emilevauge](https://github.com/emilevauge)) - Adds documentations on maxHeaderBytes ([#​13363](https://github.com/traefik/traefik/pull/13363) [@​juliens](https://github.com/juliens)) - Fix inaccuracies in reference documentation ([#​13304](https://github.com/traefik/traefik/pull/13304) [@​sheddy-traefik](https://github.com/sheddy-traefik)) ### [`v3.7.6`](https://github.com/containous/traefik/blob/HEAD/CHANGELOG.md#v376-2026-06-30) [Compare Source](https://github.com/containous/traefik/compare/v3.7.5...v3.7.6) [All Commits](https://github.com/traefik/traefik/compare/v3.7.5...v3.7.6) **Bug fixes:** - **\[acme, logs]** Bump github.com/go-acme/lego/v5 ([#​13154](https://github.com/traefik/traefik/pull/13154) [@​ldez](https://github.com/ldez)) - **\[acme]** Bump github.com/go-acme/lego/v5 ([#​13359](https://github.com/traefik/traefik/pull/13359) [@​juliens](https://github.com/juliens)) - **\[k8s, k8s/ingress-nginx]** Fix ingress-nginx ssl passthrough status updates ([#​13212](https://github.com/traefik/traefik/pull/13212) [@​nickmnt](https://github.com/nickmnt)) - **\[k8s/gatewayapi]** Add missing Gateway API features in conformance tests ([#​13356](https://github.com/traefik/traefik/pull/13356) [@​AnatoleLucet](https://github.com/AnatoleLucet)) - **\[k8s/gatewayapi]** Avoid collisions for Gateway API services names ([#​13367](https://github.com/traefik/traefik/pull/13367) [@​rtribotte](https://github.com/rtribotte)) - **\[k8s/gatewayapi]** Ignore other gateways parentRefs and update route parent statuses only for managed gateways ([#​13397](https://github.com/traefik/traefik/pull/13397) [@​rtribotte](https://github.com/rtribotte)) - **\[k8s/ingress-nginx]** Configure retry according to buffering configuration ([#​13039](https://github.com/traefik/traefik/pull/13039) [@​rtribotte](https://github.com/rtribotte)) - **\[k8s/ingress-nginx]** Fix force-ssl-redirect routing 418 when TLS is terminated upstream ([#​13386](https://github.com/traefik/traefik/pull/13386) [@​carloslima](https://github.com/carloslima)) - **\[k8s]** Detect EndpointSlice condition changes ([#​13405](https://github.com/traefik/traefik/pull/13405) [@​kevinpollet](https://github.com/kevinpollet)) - **\[k8s]** Index Kubernetes EndpointSlice by service name ([#​13395](https://github.com/traefik/traefik/pull/13395) [@​kevinpollet](https://github.com/kevinpollet)) - **\[k8s]** Sort endpointslices to keep backend IPs consistent across rebuilds ([#​13406](https://github.com/traefik/traefik/pull/13406) [@​kevinpollet](https://github.com/kevinpollet)) - **\[kv]** Bump kvtools/redis to v1.2.1 ([#​13403](https://github.com/traefik/traefik/pull/13403) [@​ldez](https://github.com/ldez)) - **\[middleware, authentication]** Fix x-forwarded-port in forward-auth ([#​13344](https://github.com/traefik/traefik/pull/13344) [@​juliens](https://github.com/juliens)) - **\[middleware, k8s/gatewayapi]** Fix Gateway API redirect missing statuses ([#​13360](https://github.com/traefik/traefik/pull/13360) [@​AnatoleLucet](https://github.com/AnatoleLucet)) - **\[middleware, k8s/gatewayapi]** Fix Host header not being modified by RequestHeaderModifier ([#​12805](https://github.com/traefik/traefik/pull/12805) [@​mihuross](https://github.com/mihuross)) - **\[middleware, k8s/gatewayapi]** Fix request scheme derivation when Gateway API RequestRedirect omits scheme ([#​13347](https://github.com/traefik/traefik/pull/13347) [@​gndz07](https://github.com/gndz07)) - **\[middleware]** Fix CORS Max-Age set to 0 by default ([#​13371](https://github.com/traefik/traefik/pull/13371) [@​AnatoleLucet](https://github.com/AnatoleLucet)) - **\[middleware]** Fix CORS wildcard when allow-credentials is true ([#​13368](https://github.com/traefik/traefik/pull/13368) [@​AnatoleLucet](https://github.com/AnatoleLucet)) - **\[server]** Add an option to remove request headers with underscores ([#​13262](https://github.com/traefik/traefik/pull/13262) [@​youkoulayley](https://github.com/youkoulayley)) - **\[server]** Configurable max request header size ([#​13353](https://github.com/traefik/traefik/pull/13353) [@​juliens](https://github.com/juliens)) - **\[tls]** Fix nondeterministic TLS certificate selection on shared SAN ([#​13348](https://github.com/traefik/traefik/pull/13348) [@​rtribotte](https://github.com/rtribotte)) - **\[webui]** Bump axios to v1.18.0 ([#​13380](https://github.com/traefik/traefik/pull/13380) [@​gndz07](https://github.com/gndz07)) - **\[websocket]** Fix connection upgrades when backend server is using h2c scheme ([#​12967](https://github.com/traefik/traefik/pull/12967) [@​stffabi](https://github.com/stffabi)) **Documentation:** - **\[k8s/crd]** Fix broken CRD reference links in IngressRoute page ([#​13375](https://github.com/traefik/traefik/pull/13375) [@​s3onghyun](https://github.com/s3onghyun)) - **\[k8s/gatewayapi]** Remove experimental note for Gateway API/TLSRoute documentation ([#​13392](https://github.com/traefik/traefik/pull/13392) [@​jnoordsij](https://github.com/jnoordsij)) - **\[k8s/ingress-nginx]** Add Kubernetes Ingress NGINX to the providers list ([#​13372](https://github.com/traefik/traefik/pull/13372) [@​nmengin](https://github.com/nmengin)) - **\[k8s]** Align Helm chart documented values with chart v41 ([#​13366](https://github.com/traefik/traefik/pull/13366) [@​mloiseleur](https://github.com/mloiseleur)) - **\[middleware, authentication, k8s/ingress-nginx]** Clarify intentional auth-response-headers gating and absence of stripping incoming X-Forwarded-\* headers ([#​13342](https://github.com/traefik/traefik/pull/13342) [@​rtribotte](https://github.com/rtribotte)) - **\[middleware]** Clarify entryPoint middleware reference format ([#​13364](https://github.com/traefik/traefik/pull/13364) [@​mloiseleur](https://github.com/mloiseleur)) - **\[security]** Add HTTP/2 header memory exhaustion security documentation ([#​13381](https://github.com/traefik/traefik/pull/13381) [@​emilevauge](https://github.com/emilevauge)) - Adds documentations on maxHeaderBytes ([#​13363](https://github.com/traefik/traefik/pull/13363) [@​juliens](https://github.com/juliens)) - Fix inaccuracies in reference documentation ([#​13304](https://github.com/traefik/traefik/pull/13304) [@​sheddy-traefik](https://github.com/sheddy-traefik)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTAuMSIsInVwZGF0ZWRJblZlciI6IjQzLjE1MC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: #16 Co-authored-by: Renovate Bot <renovate@jfreudenberger.de> Co-committed-by: Renovate Bot <renovate@jfreudenberger.de>
134 lines
4.5 KiB
Nix
134 lines
4.5 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
|
|
cfg = config.services.traefik-docker;
|
|
|
|
in {
|
|
|
|
options.services.traefik-docker = {
|
|
enable = lib.mkEnableOption "traefik web server hosted as OCI container";
|
|
dashboardUrl = lib.mkOption {
|
|
description = "External URL the traefik dashboard will be reachable from, without protocol";
|
|
type = lib.types.str;
|
|
};
|
|
dnsSecrets = lib.mkOption {
|
|
description = "Secrets for DNS providers.";
|
|
type = lib.types.listOf lib.types.anything;
|
|
};
|
|
dnsChallengeProvider = lib.mkOption {
|
|
description = "Name of provider for DNS challenge.";
|
|
type = lib.types.str;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
virtualisation.oci-containers.containers = {
|
|
traefik = {
|
|
image = "traefik:v3.7.6@sha256:21a3d83696379bac6434bb32e1dde0aff0e84ef2abd053ed3db87d3f45e749b2";
|
|
cmd = [
|
|
"--providers.docker=true"
|
|
"--providers.docker.endpoint=http://docker-socket-proxy:2375"
|
|
"--providers.docker.exposedByDefault=false"
|
|
"--providers.docker.network=traefik"
|
|
"--providers.file.directory=/dynamic-config"
|
|
"--log.level=INFO"
|
|
"--api=true"
|
|
"--ping=true"
|
|
"--entrypoints.web.address=:80"
|
|
"--entrypoints.websecure.address=:443"
|
|
"--entrypoints.websecure.transport.respondingTimeouts.readTimeout=0"
|
|
"--entrypoints.websecure.transport.respondingTimeouts.idleTimeout=0"
|
|
"--entrypoints.websecure.transport.respondingTimeouts.writeTimeout=0"
|
|
"--serverstransport.forwardingtimeouts.responseheadertimeout=0s"
|
|
"--serverstransport.forwardingtimeouts.idleconntimeout=0s"
|
|
"--entrypoints.web.http.redirections.entrypoint.to=websecure"
|
|
"--entrypoints.websecure.asDefault=true"
|
|
"--entrypoints.websecure.http.tls.certresolver=letsencrypt"
|
|
"--certificatesresolvers.letsencrypt.acme.email=contact@jfreudenberger.de"
|
|
"--certificatesresolvers.letsencrypt.acme.storage=/certs/acme.json"
|
|
"--certificatesresolvers.letsencrypt.acme.dnschallenge=true"
|
|
"--certificatesresolvers.letsencrypt.acme.dnschallenge.provider=${cfg.dnsChallengeProvider}"
|
|
"--providers.file.filename=/dynamic-config/providers.yaml"
|
|
];
|
|
autoStart = true;
|
|
ports = [
|
|
"80:80"
|
|
"443:443"
|
|
];
|
|
networks = [
|
|
"traefik"
|
|
"docker-socket"
|
|
];
|
|
environmentFiles = lib.forEach cfg.dnsSecrets (secret: secret.path);
|
|
volumes = let
|
|
traefik-providers-config = (pkgs.formats.yaml {}).generate "traefik-providers-config" {
|
|
tcp.serversTransports.pp-v2.proxyProtocol.version = 2;
|
|
};
|
|
in [
|
|
"/var/run/docker.sock:/var/run/docker.sock"
|
|
"${traefik-providers-config}:/dynamic-config/providers.yaml:ro"
|
|
];
|
|
extraOptions = [
|
|
''--mount=type=volume,source=certs,target=/certs,volume-driver=local''
|
|
"--ip=172.18.0.2"
|
|
"--add-host=host.docker.internal:host-gateway"
|
|
"--health-cmd=wget --spider --quiet http://localhost:8080/ping"
|
|
"--health-interval=10s"
|
|
"--health-timeout=5s"
|
|
"--health-retries=3"
|
|
"--health-start-period=5s"
|
|
];
|
|
};
|
|
docker-socket-proxy = {
|
|
image = "tecnativa/docker-socket-proxy:v0.4.2";
|
|
autoStart = true;
|
|
networks = [
|
|
"docker-socket"
|
|
];
|
|
environment = {
|
|
CONTAINERS = "1";
|
|
};
|
|
volumes = [
|
|
"/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
];
|
|
};
|
|
};
|
|
|
|
systemd.services."docker-traefik" = {
|
|
after = [
|
|
"docker-network-traefik.service"
|
|
"docker-network-docker-socket.service"
|
|
];
|
|
requires = [
|
|
"docker-network-traefik.service"
|
|
"docker-network-docker-socket.service"
|
|
];
|
|
};
|
|
|
|
systemd.services."docker-network-traefik" = {
|
|
path = [ pkgs.docker_29 ];
|
|
serviceConfig = {
|
|
Type = "oneshot";
|
|
};
|
|
script = ''
|
|
docker network inspect traefik || docker network create traefik --ipv4 --ipv6 --subnet=172.18.0.0/16 --gateway=172.18.0.1
|
|
'';
|
|
};
|
|
|
|
systemd.services."docker-network-docker-socket" = {
|
|
path = [ pkgs.docker_29 ];
|
|
serviceConfig = {
|
|
Type = "oneshot";
|
|
};
|
|
script = ''
|
|
docker network inspect docker-socket || docker network create docker-socket --ipv4 --ipv6 --subnet=172.19.0.0/16 --gateway=172.19.0.1
|
|
'';
|
|
};
|
|
|
|
};
|
|
}
|