yeet authentik, add keycloak and radicale
This commit is contained in:
parent
2f2318aaaa
commit
5c3f0886e5
15 changed files with 263 additions and 366 deletions
24
hosts/cloud/proxy/auth.nix
Normal file
24
hosts/cloud/proxy/auth.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.nginx.upstreams.keycloak = {
|
||||
servers = {
|
||||
"10.89.88.11:38080" = {};
|
||||
"[fd31:185d:722f::11]:38080" = {};
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."auth.oxapentane.com" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://keycloak";
|
||||
extraConfig = ''
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Port 433;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue