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

52 lines
3 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';
2024-03-21 21:14:04 +01:00
{% if var_dokuwiki_authentication_kind == 'internal' %}
$conf['authtype'] = 'authplain';
{% endif %}
{% if var_dokuwiki_authentication_kind == 'generic' %}
2023-12-18 08:40:46 +01:00
$conf['authtype'] = 'oauth';
2023-12-19 23:33:31 +01:00
$conf['disableactions'] = 'register,resendpwd,profile,profile_delete';
2024-03-21 23:43:20 +01:00
$conf['plugin']['oauth']['singleService'] = 0;
2023-12-19 23:33:31 +01:00
$conf['plugin']['oauth']['register-on-auth'] = 1;
2024-03-21 21:14:04 +01:00
$conf['plugin']['oauthgeneric']['key'] = '{{var_dokuwiki_authentication_data_generic_client_id}}';
$conf['plugin']['oauthgeneric']['secret'] = '{{var_dokuwiki_authentication_data_generic_client_secret}}';
$conf['plugin']['oauthgeneric']['authurl'] = '{{var_dokuwiki_authentication_data_generic_auth_url}}';
$conf['plugin']['oauthgeneric']['tokenurl'] = '{{var_dokuwiki_authentication_data_generic_token_url}}';
$conf['plugin']['oauthgeneric']['userurl'] = '{{var_dokuwiki_authentication_data_generic_user_url}}';
2023-12-19 23:33:31 +01:00
$conf['plugin']['oauthgeneric']['authmethod'] = 1;
2023-12-19 23:09:23 +01:00
$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';
2024-03-21 21:14:04 +01:00
$conf['plugin']['oauthgeneric']['label'] = '{{var_dokuwiki_authentication_data_generic_title}}';
$conf['plugin']['oauthgeneric']['color'] = '#333333';
{% endif %}
{% if var_dokuwiki_authentication_kind == 'authelia' %}
$conf['authtype'] = 'oauth';
$conf['disableactions'] = 'register,resendpwd,profile,profile_delete';
2024-03-21 23:43:20 +01:00
$conf['plugin']['oauth']['singleService'] = 0;
2024-03-21 21:14:04 +01:00
$conf['plugin']['oauth']['register-on-auth'] = 1;
$conf['plugin']['oauthgeneric']['key'] = '{{var_dokuwiki_authentication_data_authelia_client_id}}';
$conf['plugin']['oauthgeneric']['secret'] = '{{var_dokuwiki_authentication_data_authelia_client_secret}}';
$conf['plugin']['oauthgeneric']['authurl'] = '{{var_dokuwiki_authentication_data_authelia_url_base}}/api/oidc/authorize';
$conf['plugin']['oauthgeneric']['tokenurl'] = '{{var_dokuwiki_authentication_data_authelia_url_base}}/api/oidc/token';
$conf['plugin']['oauthgeneric']['userurl'] = '{{var_dokuwiki_authentication_data_authelia_url_base}}/api/oidc/userinfo';
$conf['plugin']['oauthgeneric']['authmethod'] = 1;
$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';
2024-03-21 22:07:39 +01:00
$conf['plugin']['oauthgeneric']['label'] = '{{var_dokuwiki_authentication_data_authelia_label}}';
2023-12-19 23:09:23 +01:00
$conf['plugin']['oauthgeneric']['color'] = '#333333';
2023-12-18 08:13:17 +01:00
{% endif %}
2024-03-21 21:14:04 +01:00