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
25426815d2
commit
9da50149b1
2 changed files with 10 additions and 4 deletions
|
|
@ -1,15 +1,18 @@
|
|||
{pkgs, ...}: {
|
||||
environment.etc."testing-keycloak-pass".text = "PWD";
|
||||
{config, ...}: {
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts."auth.wanderingcrow.net".extraConfig = ''
|
||||
reverse_proxy http://localhost:5555
|
||||
'';
|
||||
};
|
||||
|
||||
sops.secrets."keycloak/database/pass" = {};
|
||||
|
||||
services.keycloak = {
|
||||
enable = true;
|
||||
initialAdminPassword = "changeme";
|
||||
settings = {
|
||||
hostname = "localhost";
|
||||
hostname = "https://auth.wanderingcrow.net";
|
||||
http-port = 5555;
|
||||
https-port = 9443;
|
||||
http-enabled = true;
|
||||
|
|
@ -18,7 +21,7 @@
|
|||
database = {
|
||||
type = "postgresql";
|
||||
createLocally = true;
|
||||
passwordFile = "/etc/testing-keycloak-pass";
|
||||
passwordFile = config.sops.secrets."keycloak/database/pass".path;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue