mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
testing keycloak
This commit is contained in:
parent
147657de44
commit
e8c332f5bc
3 changed files with 26 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ in {
|
|||
pulseaudio
|
||||
playerctl
|
||||
brightnessctl
|
||||
waypipe
|
||||
];
|
||||
|
||||
wayland.windowManager.sway = {
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@
|
|||
"modules/services/ntfy-sh"
|
||||
"modules/services/ollama/proxy.nix" # Just host the proxy path back to Parzival
|
||||
"modules/services/netbox"
|
||||
"modules/services/auth-provider"
|
||||
"modules/services/matrix"
|
||||
"modules/services/flamesites"
|
||||
])
|
||||
|
|
|
|||
24
modules/services/auth-provider/default.nix
Normal file
24
modules/services/auth-provider/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{pkgs, ...}: {
|
||||
environment.etc."testing-keycloak-pass".text = "PWD";
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts."auth.wanderingcrow.net".extraConfig = ''
|
||||
reverse_proxy http://localhost:5555
|
||||
'';
|
||||
};
|
||||
services.keycloak = {
|
||||
enable = true;
|
||||
settings = {
|
||||
hostname = "localhost";
|
||||
http-port = 5555;
|
||||
https-port = 9443;
|
||||
http-enabled = true;
|
||||
hostname-strict-https = false;
|
||||
};
|
||||
database = {
|
||||
type = "postgresql";
|
||||
createLocally = true;
|
||||
passwordFile = "/etc/testing-keycloak-pass";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue