24 lines
1 KiB
Text
24 lines
1 KiB
Text
![]() |
<?php
|
||
|
$conf['title'] = '{{var_dokuwiki_title}}';
|
||
|
$conf['lang'] = 'en';
|
||
|
$conf['license'] = 'cc-by-sa';
|
||
|
$conf['useacl'] = 1;
|
||
|
$conf['superuser'] = '@admin';
|
||
|
$conf['disableactions'] = 'register';
|
||
|
|
||
|
{% if var_dokuwiki_oauth2_enable %}
|
||
|
$conf['authtype'] = 'oauth';
|
||
|
$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}}';
|
||
|
$conf['plugin']['oauthgeneric']['scopes'] = array('openid email profile');
|
||
|
$conf['plugin']['oauthgeneric']['json-user'] = '.sub';
|
||
|
$conf['plugin']['oauthgeneric']['json-name'] = '.name';
|
||
|
$conf['plugin']['oauthgeneric']['json-mail'] = '.email';
|
||
|
$conf['plugin']['oauthgeneric']['label'] = '{{var_dokuwiki_oauth2_title}}';
|
||
|
{% else %}
|
||
|
$conf['authtype'] = 'authplain';
|
||
|
{% endif %}
|