Let us try this...
This commit is contained in:
parent
a5dff41427
commit
fff2ca9e38
1 changed files with 17 additions and 0 deletions
|
|
@ -195,6 +195,17 @@ in {
|
|||
];
|
||||
|
||||
http.routers = {
|
||||
# Route the bare root (/) directly to the backend so the app's
|
||||
# initial redirect to /en/ happens before Anubis protection is applied.
|
||||
# This avoids Anubis capturing a root request and emitting a null redir.
|
||||
partdb-root = {
|
||||
rule = "Host(`partdb.prg-radio.org`) && Path(`/`)";
|
||||
service = "partdb-direct";
|
||||
entryPoints = ["websecure"];
|
||||
tls = {};
|
||||
priority = 200; # ensure this matches before the protected router
|
||||
};
|
||||
|
||||
#anubis-api = {
|
||||
# rule = "Host(`anubis.prg-radio.org`) && PathPrefix(`/.within.website/x/cmd/anubis/api`)";
|
||||
# service = "anubis";
|
||||
|
|
@ -245,6 +256,12 @@ in {
|
|||
};
|
||||
|
||||
http.services = {
|
||||
# Direct backend service (used only for the root path bypass)
|
||||
partdb-direct.loadBalancer = {
|
||||
servers = [ { url = "http://10.1.1.249:8087"; } ];
|
||||
passHostHeader = true;
|
||||
};
|
||||
|
||||
# Anubis service (challenge UI / redirect endpoint)
|
||||
anubis.loadBalancer = {
|
||||
servers = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue