]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/websites/tools/tools/yourls.nix
Add specification for the private config file as a module.
[perso/Immae/Config/Nix.git] / modules / private / websites / tools / tools / yourls.nix
index 0a8e8377701e892b789dd221731791d5e2bdcefe..6280e78d23af03943040e17ba5c5fe64bdf62f75 100644 (file)
@@ -28,10 +28,10 @@ rec {
       define( 'YOURLS_DEBUG', false );
       define( 'YOURLS_URL_CONVERT', 36 );
       $yourls_reserved_URL = array();
-      define( 'LDAPAUTH_HOST', 'ldaps://ldap.immae.eu' );
+      define( 'LDAPAUTH_HOST', 'ldaps://${env.ldap.host}' );
       define( 'LDAPAUTH_PORT', '636' );
-      define( 'LDAPAUTH_BASE', 'dc=immae,dc=eu' );
-      define( 'LDAPAUTH_SEARCH_USER', 'cn=yourls,ou=services,dc=immae,dc=eu' );
+      define( 'LDAPAUTH_BASE', '${env.ldap.base}' );
+      define( 'LDAPAUTH_SEARCH_USER', '${env.ldap.dn}' );
       define( 'LDAPAUTH_SEARCH_PASS', '${env.ldap.password}' );
 
       define( 'LDAPAUTH_GROUP_ATTR', 'memberof' );