mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
glauth: Working
This commit is contained in:
parent
a1d46f5301
commit
acfa259b2a
4 changed files with 12 additions and 3 deletions
|
|
@ -1,6 +1,10 @@
|
|||
{ config, tf, lib, ... }: with lib; {
|
||||
network.firewall.public.tcp.ports = singleton 3984;
|
||||
|
||||
network.extraCerts.domain-auth = "auth.${config.network.dns.domain}";
|
||||
users.groups.domain-auth.members = [ "nginx" "glauth" ];
|
||||
security.acme.certs.domain-auth.group = "domain-auth";
|
||||
|
||||
services.glauth = {
|
||||
enable = true;
|
||||
configFile = config.secrets.files.glauth-config-file.path;
|
||||
|
|
@ -19,8 +23,8 @@
|
|||
ldaps = {
|
||||
enabled = true;
|
||||
listen = "0.0.0.0:3894";
|
||||
cert = "/var/lib/acme/auth.kittywit.ch/fullchain.pem";
|
||||
key = "/var/lib/acme/auth.kittywit.ch/key.pem";
|
||||
cert = "/var/lib/acme/domain-auth/fullchain.pem";
|
||||
key = "/var/lib/acme/domain-auth/key.pem";
|
||||
};
|
||||
backend = {
|
||||
baseDN = "dc=kittywitch,dc=com";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue