mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
keycloak: disable
This commit is contained in:
parent
103c238e3e
commit
7a3f987b0d
5 changed files with 3 additions and 49 deletions
|
@ -1,43 +0,0 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
domain = "auth.${config.networking.domain}";
|
||||
in
|
||||
{
|
||||
age.secrets.keycloak = {
|
||||
file = ../../../../secrets/nuc/keycloak/db.age;
|
||||
};
|
||||
services.keycloak = {
|
||||
enable = true;
|
||||
settings = {
|
||||
http-port = 8084;
|
||||
https-port = 19000;
|
||||
hostname = domain;
|
||||
# proxy-headers = "forwarded";
|
||||
proxy = "edge";
|
||||
};
|
||||
database = {
|
||||
# host = "/var/run/postgresql/.s.PGSQL.5432";
|
||||
# useSSL = false;
|
||||
# createLocally = false;
|
||||
passwordFile = config.age.secrets.keycloak.path;
|
||||
};
|
||||
initialAdminPassword = "plschangeme";
|
||||
};
|
||||
# services.postgresql = {
|
||||
# enable = true;
|
||||
# ensureUsers = [
|
||||
# {
|
||||
# name = "keycloak";
|
||||
# ensureDBOwnership = true;
|
||||
# }
|
||||
# ];
|
||||
# ensureDatabases = [ "keycloak" ];
|
||||
# };
|
||||
services.nginx.virtualHosts."${domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.keycloak.settings.http-port}";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue