X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Ftools%2Ftools%2Fyourls.nix;h=6280e78d23af03943040e17ba5c5fe64bdf62f75;hb=619e4f46adc15e409122c4e0fa0e0a0b811bb32f;hp=0a8e8377701e892b789dd221731791d5e2bdcefe;hpb=4288c2f2431fb782b0d512b1b3749187f2374b6a;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/tools/tools/yourls.nix b/modules/private/websites/tools/tools/yourls.nix index 0a8e837..6280e78 100644 --- a/modules/private/websites/tools/tools/yourls.nix +++ b/modules/private/websites/tools/tools/yourls.nix @@ -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' );