dump
Some checks failed
Test / tests (push) Failing after 16m54s
/ OpenTofu (push) Successful in 17s

This commit is contained in:
plasmagoat 2025-11-18 20:00:39 +01:00
parent 6ba25b90a9
commit 0f49c6c37c
35 changed files with 747 additions and 120 deletions

View file

@ -50,14 +50,41 @@ in {
staticConfigOptions = staticConfig;
dynamicConfigOptions.http = {
routers = allRouters;
services = allServices;
middlewares = middlewares;
dynamicConfigOptions = {
# HTTP configuration (your existing setup)
http = {
routers = allRouters;
services = allServices;
middlewares = middlewares;
serversTransports = {
insecureTransport = {
insecureSkipVerify = true;
};
};
};
serversTransports = {
insecureTransport = {
insecureSkipVerify = true;
tcp = {
routers = {
caddy-fallback = {
rule = "HostSNI(`*`)"; # Matches any SNI
service = "caddy-tls";
entryPoints = ["websecure"];
priority = 1; # Lowest priority - only if no HTTP router matches
tls = {
passthrough = true;
};
};
};
services = {
caddy-tls = {
loadBalancer = {
servers = [
{
address = "sandbox.lab:443";
}
];
};
};
};
};
};