disable trafik's auth and new helper functions
This commit is contained in:
parent
dd7d994cc9
commit
6b2553b3e9
1 changed files with 19 additions and 16 deletions
|
|
@ -1,24 +1,27 @@
|
||||||
{ homelab, lib, ... }: let
|
{ homelab, lib, ... }: let
|
||||||
|
d = domain: { dest = d; auth = false; };
|
||||||
|
da = domain: { dest = d; auth = true; };
|
||||||
|
|
||||||
base = "proxy.${homelab.domain}";
|
base = "proxy.${homelab.domain}";
|
||||||
hosts = {
|
hosts = {
|
||||||
"server" = { dest = "https://server.dns.${homelab.domain}:8006"; auth = false; };
|
"server" = d "https://server.dns.${homelab.domain}:8006";
|
||||||
"router" = { dest = "http://router.dns.${homelab.domain}:80"; auth = false; };
|
"router" = d "http://router.dns.${homelab.domain}:80";
|
||||||
"home" = { dest = "http://home.dns.${homelab.domain}:8123"; auth = false; };
|
"home" = d "http://home.dns.${homelab.domain}:8123";
|
||||||
|
|
||||||
"containers" = { dest = "http://localhost:5001"; auth = true; };
|
"containers" = da "http://localhost:5001";
|
||||||
"dynamic" = { dest = "http://localhost:8082"; auth = true; };
|
"dns" = da "http://localhost:8088";
|
||||||
"dns" = { dest = "http://localhost:8088"; auth = true; };
|
|
||||||
|
|
||||||
"gallery" = { dest = "http://localhost:2283"; auth = false; };
|
"gallery" = d "http://localhost:2283";
|
||||||
"remote" = { dest = "http://localhost:8085"; auth = false; };
|
"dynamic" = d "http://localhost:8082";
|
||||||
"search" = { dest = "http://localhost:8091"; auth = false; };
|
"remote" = d "http://localhost:8085";
|
||||||
"notify" = { dest = "http://localhost:8067"; auth = false; };
|
"search" = d "http://localhost:8091";
|
||||||
"media" = { dest = "http://localhost:8096"; auth = false; };
|
"notify" = d "http://localhost:8067";
|
||||||
"pass" = { dest = "http://localhost:8060"; auth = false; };
|
"media" = d "http://localhost:8096";
|
||||||
"auth" = { dest = "http://localhost:1411"; auth = false; };
|
"pass" = d "http://localhost:8060";
|
||||||
"git" = { dest = "http://localhost:5080"; auth = false; };
|
"auth" = d "http://localhost:1411";
|
||||||
"ai" = { dest = "http://localhost:8080"; auth = false; };
|
"git" = d "http://localhost:5080";
|
||||||
"@" = { dest = "http://localhost:5070"; auth = false; };
|
"ai" = d "http://localhost:8080";
|
||||||
|
"@" = d "http://localhost:5070";
|
||||||
};
|
};
|
||||||
redirects = {
|
redirects = {
|
||||||
"www" = "https://proxy.${homelab.domain}";
|
"www" = "https://proxy.${homelab.domain}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue