mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-27 08:54:05 -05:00
authentik running
This commit is contained in:
parent
e0e888bc36
commit
ab6672999a
4 changed files with 275 additions and 36 deletions
|
|
@ -5,23 +5,13 @@
|
|||
reverse_proxy http://localhost:5555
|
||||
'';
|
||||
};
|
||||
|
||||
sops.secrets."keycloak/database/pass" = {};
|
||||
|
||||
services.keycloak = {
|
||||
sops.templates.authentik-env.content = ''
|
||||
AUTHENTIK_SECRET_KEY=qwerasvvbkuhjbn235987@!$
|
||||
AUTHENTIK_LISTEN__HTTP=127.0.0.1:5555
|
||||
AUTHENTIK_LISTEN__HTTPS=127.0.0.1:5443
|
||||
'';
|
||||
services.authentik = {
|
||||
enable = true;
|
||||
initialAdminPassword = "changeme";
|
||||
settings = {
|
||||
hostname = "https://auth.wanderingcrow.net";
|
||||
http-port = 5555;
|
||||
https-port = 9443;
|
||||
http-enabled = true;
|
||||
hostname-strict-https = false;
|
||||
};
|
||||
database = {
|
||||
type = "postgresql";
|
||||
createLocally = true;
|
||||
passwordFile = config.sops.secrets."keycloak/database/pass".path;
|
||||
};
|
||||
environmentFile = config.sops.templates.authentik-env.path;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue