feat(heimdall): put anubis in front of redlib.
This commit is contained in:
parent
c9d2cc6f44
commit
1d6a13f479
1 changed files with 11 additions and 1 deletions
|
@ -9,10 +9,20 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Setup anubis to block fucking ai bots
|
||||||
|
services.anubis.instances.redlib = {
|
||||||
|
settings = {
|
||||||
|
TARGET = "http://127.0.0.1:8080";
|
||||||
|
BIND_NETWORK = "tcp";
|
||||||
|
BIND = "127.0.0.1:8081";
|
||||||
|
SERVE_ROBOTS_TXT = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.traefik.dynamicConfigOptions.http = {
|
services.traefik.dynamicConfigOptions.http = {
|
||||||
services.redlib.loadBalancer.servers = [
|
services.redlib.loadBalancer.servers = [
|
||||||
{
|
{
|
||||||
url = "http://localhost:8080";
|
url = "http://localhost:8081";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue