mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
hosts/plover: add LDAP server to reverse proxy
This commit is contained in:
parent
bdf862cc91
commit
f789e85fcc
@ -96,15 +96,9 @@ in
|
|||||||
|
|
||||||
# DNS-related settings. This is nice for automating them putting DNS records
|
# DNS-related settings. This is nice for automating them putting DNS records
|
||||||
# and other types of stuff.
|
# and other types of stuff.
|
||||||
security.acme = {
|
security.acme.defaults = {
|
||||||
defaults = {
|
dnsProvider = "porkbun";
|
||||||
dnsProvider = "porkbun";
|
credentialsFile = config.sops.secrets."plover/lego/env".path;
|
||||||
credentialsFile = config.sops.secrets."plover/lego/env".path;
|
|
||||||
};
|
|
||||||
|
|
||||||
certs = {
|
|
||||||
"${ldapDomain}".group = config.services.openldap.group;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.openssh.hostKeys = [{
|
services.openssh.hostKeys = [{
|
||||||
@ -179,12 +173,12 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Keycloak instance.
|
# OpenLDAP server.
|
||||||
"${authDomain}" = {
|
"${ldapDomain}" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:${toString config.services.keycloak.settings.http-port}";
|
proxyPass = "http://localhost:389";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user