adding keycloak
This commit is contained in:
parent
73086f9798
commit
71de736959
29
modules/keycloak.nix
Normal file
29
modules/keycloak.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{ config, lib, pkgs, unstable, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dn = "auth.tfcconnection.org";
|
||||||
|
in
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
keycloak = {
|
||||||
|
enable = true;
|
||||||
|
initialAdminPassword = "clang";
|
||||||
|
settings = {
|
||||||
|
hostname = dn;
|
||||||
|
http-port = 8787;
|
||||||
|
https-port = 8788;
|
||||||
|
proxy = "passthrough";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
nginx.virtualHosts.${dn} = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
|
proxyPass = "http://localhost:${toString config.services.keycloak.settings.http-port}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -26,7 +26,7 @@ with lib;
|
||||||
extraApps = with config.services.nextcloud.package.packages.apps; {
|
extraApps = with config.services.nextcloud.package.packages.apps; {
|
||||||
# List of apps we want to install and are already packaged in
|
# List of apps we want to install and are already packaged in
|
||||||
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nextcloud/packages/nextcloud-apps.json
|
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nextcloud/packages/nextcloud-apps.json
|
||||||
inherit calendar contacts collectives recognize deck integration_openai mail groupfolders memories tasks app_api previewgenerator richdocuments;
|
inherit calendar contacts collectives recognize deck integration_openai mail groupfolders memories user_oidc tasks app_api previewgenerator richdocuments;
|
||||||
# Custom app example.
|
# Custom app example.
|
||||||
# socialsharing_telegram = pkgs.fetchNextcloudApp rec {
|
# socialsharing_telegram = pkgs.fetchNextcloudApp rec {
|
||||||
# url =
|
# url =
|
||||||
|
@ -62,6 +62,10 @@ with lib;
|
||||||
"OC\Preview\TXT"
|
"OC\Preview\TXT"
|
||||||
"OC\Preview\XBitmap"
|
"OC\Preview\XBitmap"
|
||||||
];
|
];
|
||||||
|
user_oidc = {
|
||||||
|
auto_provision = true;
|
||||||
|
soft_auto_provision = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
dbtype = "pgsql";
|
dbtype = "pgsql";
|
||||||
|
|
|
@ -21,6 +21,7 @@ in
|
||||||
../../modules/vaultwarden.nix
|
../../modules/vaultwarden.nix
|
||||||
# ../../modules/nocodb.nix
|
# ../../modules/nocodb.nix
|
||||||
../../modules/grist.nix
|
../../modules/grist.nix
|
||||||
|
../../modules/keycloak.nix
|
||||||
# ../../modules/comfyui.nix
|
# ../../modules/comfyui.nix
|
||||||
# ../../pkgs/server.nix
|
# ../../pkgs/server.nix
|
||||||
# ../../pkgs/nextcloud.nix
|
# ../../pkgs/nextcloud.nix
|
||||||
|
|
Loading…
Reference in a new issue