feat(koi): oidc auth for hass

This commit is contained in:
alina 🌸 2024-11-24 01:15:29 +03:00
parent b893d6e21e
commit 0266770c55
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
2 changed files with 9 additions and 1 deletions

View file

@ -22,12 +22,20 @@ in
};
};
desu.secrets.hass-proxy-env = {};
desu.openid-proxy.services.hass = {
clientId = "hass";
domain = "hass.stupid.fish";
upstream = "http://10.42.0.3:8123";
envSecret = "hass-proxy-env";
};
services.nginx.virtualHosts."hass.stupid.fish" = {
forceSSL = true;
useACMEHost = "stupid.fish";
locations."/" = {
proxyPass = "http://10.42.0.3:8123$request_uri";
proxyPass = "http://hass-oidc.docker$request_uri";
proxyWebsockets = true;
};
};

BIN
secrets/hass-proxy-env.age Normal file

Binary file not shown.