dump
This commit is contained in:
parent
6ba25b90a9
commit
0f49c6c37c
35 changed files with 747 additions and 120 deletions
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue