mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat(idp): records
This commit is contained in:
parent
38787f79d1
commit
6428d469bd
3 changed files with 18 additions and 4 deletions
|
|
@ -65,6 +65,10 @@ in {
|
|||
port = mkOption {
|
||||
type = port;
|
||||
};
|
||||
ldapHost = mkOption {
|
||||
type = str;
|
||||
default = access.host;
|
||||
};
|
||||
ldapPort = mkOption {
|
||||
type = port;
|
||||
};
|
||||
|
|
@ -101,7 +105,7 @@ in {
|
|||
listen 0.0.0.0:389;
|
||||
listen [::]:389;
|
||||
${allows}
|
||||
proxy_pass ${access.host}:${toString access.ldapPort};
|
||||
proxy_pass ${access.ldapHost}:${toString access.ldapPort};
|
||||
proxy_ssl on;
|
||||
proxy_ssl_verify off;
|
||||
}
|
||||
|
|
@ -109,7 +113,7 @@ in {
|
|||
listen 0.0.0.0:636 ssl;
|
||||
listen [::]:636 ssl;
|
||||
${sslConfig}
|
||||
proxy_pass ${access.host}:${toString access.ldapPort};
|
||||
proxy_pass ${access.ldapHost}:${toString access.ldapPort};
|
||||
proxy_ssl on;
|
||||
proxy_ssl_verify off;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue