More trying out things.
This commit is contained in:
parent
f284027ade
commit
bf0f9f9a5a
1 changed files with 8 additions and 19 deletions
|
|
@ -147,29 +147,18 @@ in {
|
||||||
forwardAuth = {
|
forwardAuth = {
|
||||||
address = "http://127.0.0.1:8090/.within.website/x/cmd/anubis/api/check";
|
address = "http://127.0.0.1:8090/.within.website/x/cmd/anubis/api/check";
|
||||||
trustForwardHeader = true;
|
trustForwardHeader = true;
|
||||||
# Forward authentication headers
|
|
||||||
authResponseHeaders = [
|
|
||||||
"X-Anubis-Authorized"
|
|
||||||
];
|
|
||||||
authRequestHeaders = [
|
|
||||||
"X-Forwarded-Proto"
|
|
||||||
"X-Forwarded-Host"
|
|
||||||
"X-Forwarded-Uri"
|
|
||||||
"X-Forwarded-For"
|
|
||||||
"X-Real-Ip"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
http.routers = {
|
http.routers = {
|
||||||
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";
|
||||||
entryPoints = ["websecure"];
|
# entryPoints = ["websecure"];
|
||||||
priority = 200;
|
# priority = 200;
|
||||||
tls = {};
|
# tls = {};
|
||||||
};
|
# };
|
||||||
|
|
||||||
# Anubis router (for challenge page)
|
# Anubis router (for challenge page)
|
||||||
anubis = {
|
anubis = {
|
||||||
|
|
@ -221,7 +210,7 @@ in {
|
||||||
servers = [
|
servers = [
|
||||||
{url = "http://127.0.0.1:8090";}
|
{url = "http://127.0.0.1:8090";}
|
||||||
];
|
];
|
||||||
passHostHeader = true;
|
#passHostHeader = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
forgejo.loadBalancer = {
|
forgejo.loadBalancer = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue