Revert changes
All checks were successful
Build Nix modules (dry-run) / build-modules (push) Successful in 3m36s
All checks were successful
Build Nix modules (dry-run) / build-modules (push) Successful in 3m36s
This commit is contained in:
parent
d466d87ee4
commit
3c19a950a7
1 changed files with 2 additions and 18 deletions
|
|
@ -64,8 +64,7 @@ in {
|
||||||
PUBLIC_URL = "https://anubis.prg-radio.org";
|
PUBLIC_URL = "https://anubis.prg-radio.org";
|
||||||
|
|
||||||
# Cookie domain for proper scoping (leading dot for all subdomains)
|
# Cookie domain for proper scoping (leading dot for all subdomains)
|
||||||
# Use bare domain (no leading dot) for consistent modern browser behavior
|
COOKIE_DOMAIN = ".prg-radio.org";
|
||||||
COOKIE_DOMAIN = "prg-radio.org";
|
|
||||||
|
|
||||||
# Difficulty level
|
# Difficulty level
|
||||||
DIFFICULTY = 7;
|
DIFFICULTY = 7;
|
||||||
|
|
@ -120,11 +119,7 @@ in {
|
||||||
settings = {
|
settings = {
|
||||||
BIND_NETWORK = "tcp";
|
BIND_NETWORK = "tcp";
|
||||||
BIND = "127.0.0.1:8094";
|
BIND = "127.0.0.1:8094";
|
||||||
TARGET = "http://10.1.1.249:8087";
|
TARGET = "http://10.1.1.249:8087"; # PartDB backend
|
||||||
# When running Anubis in reverse-proxy (inline) mode we must tell
|
|
||||||
# the instance the public URL it serves so redirects and assets use
|
|
||||||
# the protected host instead of the central anubis host.
|
|
||||||
PUBLIC_URL = "https://partdb.prg-radio.org";
|
|
||||||
DIFFICULTY = 20;
|
DIFFICULTY = 20;
|
||||||
SERVE_ROBOTS_TXT = true;
|
SERVE_ROBOTS_TXT = true;
|
||||||
WEBMASTER_EMAIL = "dtu.prg@gmail.com";
|
WEBMASTER_EMAIL = "dtu.prg@gmail.com";
|
||||||
|
|
@ -246,12 +241,6 @@ 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 = [
|
||||||
|
|
@ -277,14 +266,9 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
partdb.loadBalancer = {
|
partdb.loadBalancer = {
|
||||||
# Route PartDB through the local Anubis reverse-proxy instance so the
|
|
||||||
# challenge page and cookies are served inline on the same origin.
|
|
||||||
servers = [
|
servers = [
|
||||||
{url = "http://127.0.0.1:8094";}
|
{url = "http://127.0.0.1:8094";}
|
||||||
];
|
];
|
||||||
# Ensure Traefik forwards the original Host header to Anubis (and
|
|
||||||
# ultimately to the backend) so absolute links and redirects are correct.
|
|
||||||
passHostHeader = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue