Enable sniStrict to drop requests from domains without routers
This commit is contained in:
parent
15c427f812
commit
7b66f284f6
|
@ -25,24 +25,29 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
dynamicConfigOptions.http = {
|
dynamicConfigOptions = {
|
||||||
routers.api = {
|
tls.options.default.sniStrict = true;
|
||||||
rule = "Host(`traefik.xenia.me.uk`)";
|
http = {
|
||||||
entryPoints = ["http" "https"];
|
routers = {
|
||||||
service = "api@internal";
|
api = {
|
||||||
middlewares = ["auth"];
|
rule = "Host(`traefik.xenia.me.uk`)";
|
||||||
tls = {certResolver = "default";};
|
entryPoints = ["http" "https"];
|
||||||
};
|
service = "api@internal";
|
||||||
routers.api-internal = {
|
middlewares = ["auth"];
|
||||||
rule = "ClientIP(`192.168.0.0/16`)";
|
tls = {certResolver = "default";};
|
||||||
entryPoints = ["traefik-internal"];
|
};
|
||||||
service = "api@internal";
|
api-internal = {
|
||||||
};
|
rule = "ClientIP(`192.168.0.0/16`)";
|
||||||
middlewares = {
|
entryPoints = ["traefik-internal"];
|
||||||
auth.basicAuth.users = ["xenia:$apr1$LB0wVd6I$BHVPIyh.F5Ewt9/7PqAtS."];
|
service = "api@internal";
|
||||||
hsts.headers = {
|
};
|
||||||
stsSeconds = "31536000";
|
};
|
||||||
stsIncludeSubdomains = true;
|
middlewares = {
|
||||||
|
auth.basicAuth.users = ["xenia:$apr1$LB0wVd6I$BHVPIyh.F5Ewt9/7PqAtS."];
|
||||||
|
hsts.headers = {
|
||||||
|
stsSeconds = "31536000";
|
||||||
|
stsIncludeSubdomains = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue