Let us try this...

This commit is contained in:
Root User 2026-02-14 00:01:22 +01:00
parent a5dff41427
commit fff2ca9e38
Signed by: root
GPG key ID: 087F0A95E5766D72

View file

@ -195,6 +195,17 @@ in {
]; ];
http.routers = { 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 = { #anubis-api = {
# rule = "Host(`anubis.prg-radio.org`) && PathPrefix(`/.within.website/x/cmd/anubis/api`)"; # rule = "Host(`anubis.prg-radio.org`) && PathPrefix(`/.within.website/x/cmd/anubis/api`)";
# service = "anubis"; # service = "anubis";
@ -245,6 +256,12 @@ in {
}; };
http.services = { 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 service (challenge UI / redirect endpoint)
anubis.loadBalancer = { anubis.loadBalancer = {
servers = [ servers = [