ansible-base/ansible/roles/dokuwiki/templates/conf-local.php.j2

29 lines
1.4 KiB
Text
Raw Normal View History

2023-12-18 08:13:17 +01:00
<?php
$conf['title'] = '{{var_dokuwiki_title}}';
2023-12-19 23:09:23 +01:00
$conf['lang'] = '{{var_dokuwiki_language}}';
$conf['license'] = '{{var_dokuwiki_licence}}';
2023-12-18 08:13:17 +01:00
$conf['useacl'] = 1;
$conf['superuser'] = '@admin';
2023-12-19 23:09:23 +01:00
$conf['passcrypt'] = 'bcrypt';
2023-12-18 08:13:17 +01:00
{% if var_dokuwiki_oauth2_enable %}
2023-12-18 08:40:46 +01:00
$conf['authtype'] = 'oauth';
2023-12-19 23:09:23 +01:00
$conf['disableactions'] = 'resendpwd,profile,profile_delete';
$conf['plugin']['oauth']['singleService'] = 1;
2023-12-18 08:13:17 +01:00
$conf['plugin']['oauthgeneric']['key'] = '{{var_dokuwiki_oauth2_client_id}}';
$conf['plugin']['oauthgeneric']['secret'] = '{{var_dokuwiki_oauth2_client_secret}}';
$conf['plugin']['oauthgeneric']['authurl'] = '{{var_dokuwiki_oauth2_auth_url}}';
$conf['plugin']['oauthgeneric']['tokenurl'] = '{{var_dokuwiki_oauth2_token_url}}';
$conf['plugin']['oauthgeneric']['userurl'] = '{{var_dokuwiki_oauth2_user_url}}';
2023-12-19 23:09:23 +01:00
$conf['plugin']['oauthgeneric']['authmethod'] = 0;
$conf['plugin']['oauthgeneric']['scopes'] = ['openid','email','profile','groups'];
$conf['plugin']['oauthgeneric']['needs-state'] = 1;
$conf['plugin']['oauthgeneric']['json-user'] = 'sub';
$conf['plugin']['oauthgeneric']['json-name'] = 'name';
$conf['plugin']['oauthgeneric']['json-mail'] = 'email';
$conf['plugin']['oauthgeneric']['json-grps'] = 'groups';
2023-12-18 08:13:17 +01:00
$conf['plugin']['oauthgeneric']['label'] = '{{var_dokuwiki_oauth2_title}}';
2023-12-19 23:09:23 +01:00
$conf['plugin']['oauthgeneric']['color'] = '#333333';
2023-12-18 08:13:17 +01:00
{% else %}
2023-12-18 08:40:46 +01:00
$conf['authtype'] = 'authplain';
2023-12-18 08:13:17 +01:00
{% endif %}