mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(network): uqdn
This commit is contained in:
parent
d1dc6a0e72
commit
58992ff283
6 changed files with 53 additions and 36 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{ config, pkgs, lib, tf, ... }: with lib; let
|
||||
id = tf.acme.certs."auth.kittywit.ch".out.resource.getAttr "id";
|
||||
in {
|
||||
services.keycloak = {
|
||||
services.keycloak = lib.mkIf (tf.state.enable) {
|
||||
enable = builtins.getEnv "CI_PLATFORM" == "impure";
|
||||
package = (pkgs.keycloak.override {
|
||||
jre = pkgs.openjdk11;
|
||||
|
|
@ -33,12 +33,12 @@ in {
|
|||
members = [ "keycloak" "openldap" ];
|
||||
};
|
||||
|
||||
systemd.services.keycloak.script = lib.mkBefore ''
|
||||
systemd.services.keycloak.script = lib.mkIf (tf.state.enable) (lib.mkBefore ''
|
||||
mkdir -p /run/keycloak
|
||||
if [[ ! -e /run/keycloak/${id}.jks ]]; then
|
||||
${pkgs.adoptopenjdk-jre-bin}/bin/keytool -import -alias auth.kittywit.ch -noprompt -keystore /run/keycloak/${id}.jks -keypass ${id} -storepass ${id} -file ${config.domains.kittywitch-keycloak.cert_path}
|
||||
fi
|
||||
'';
|
||||
'');
|
||||
|
||||
users.groups.keycloak = { };
|
||||
|
||||
|
|
|
|||
|
|
@ -71,5 +71,6 @@
|
|||
network = "internet";
|
||||
type = "cname";
|
||||
domain = "vault";
|
||||
zone = "kittywit.ch.";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue