30 lines
1.3 KiB
Django/Jinja
30 lines
1.3 KiB
Django/Jinja
<?php
|
|
# The home-server project produces a multi-purpose setup using Ansible.
|
|
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license.
|
|
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
|
|
|
|
if (!defined('DC_RC_PATH')) { return; }
|
|
|
|
define('DC_DBDRIVER','pgsql');
|
|
define('DC_DBHOST','/run/shared_sockets/');
|
|
define('DC_DBUSER','{{dotclear_db_user}}');
|
|
define('DC_DBPASSWORD','{{dotclear_db_password}}');
|
|
define('DC_DBNAME','{{dotclear_db}}');
|
|
define('DC_DBPREFIX','dc_');
|
|
define('DC_DBPERSIST',false);
|
|
define('DC_MASTER_KEY','{{dotclear_master_key}}');
|
|
define('DC_ADMIN_URL','https://{{net_soa}}{{http_pfx_dotclear}}/admin/');
|
|
define('DC_ADMIN_MAILFROM','dotclear@{{net_soa}}');
|
|
define('DC_SESSION_NAME','dcxd');
|
|
define('DC_PLUGINS_ROOT',dirname(__FILE__).'/../plugins');
|
|
define('DC_TPL_CACHE',path::real(dirname(__FILE__).'/..').'/cache');
|
|
define('DC_VAR',path::real(dirname(__FILE__).'/..').'/var');
|
|
define('DC_CRYPT_ALGO','sha512');
|
|
|
|
#define('DC_LDAPAUTH_URI', 'ldap://{{SafeZone}}:389');
|
|
define('DC_LDAPAUTH_URI', 'ldapi://%2Frun%2Fshared_sockets%2Fldapi');
|
|
define('DC_LDAPAUTH_USERSDN', 'ou=Users,{{ldap_root}}');
|
|
define('DC_LDAPAUTH_USER_ID', 'uid');
|
|
$__autoload['ldapAuth'] = dirname(__FILE__).'/ldap_auth.php';
|
|
define('DC_AUTH_CLASS','ldapAuth');
|