mirror of https://gitlab.crans.org/nounous/nixos
feat: OpenID NoteKfet pour mediawiki
parent
5a32b7f5e7
commit
b0250a7548
|
|
@ -16,7 +16,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
id = "44";
|
id = 144;
|
||||||
srvNat.enable = true;
|
srvNat.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,11 @@ in
|
||||||
owner = "mediawiki";
|
owner = "mediawiki";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
age.secrets.mediawiki-openid = {
|
||||||
|
file = ../../../secrets/mediakiwi/mediawiki-openid.age;
|
||||||
|
owner = "mediawiki";
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
imagemagick
|
imagemagick
|
||||||
|
|
||||||
|
|
@ -101,6 +106,8 @@ in
|
||||||
$wgPluggableAuth_EnableLocalLogin = true;
|
$wgPluggableAuth_EnableLocalLogin = true;
|
||||||
$LDAPAuthentication2AllowLocalLogin = true;
|
$LDAPAuthentication2AllowLocalLogin = true;
|
||||||
$LDAPProviderDomainConfigs = "${config.age.secrets.mediawiki-ldap.path}";
|
$LDAPProviderDomainConfigs = "${config.age.secrets.mediawiki-ldap.path}";
|
||||||
|
# On importe les secrets pour l'OpenID.
|
||||||
|
require '${config.age.secrets.mediawiki-openid.path}';
|
||||||
$wgPluggableAuth_Config = [
|
$wgPluggableAuth_Config = [
|
||||||
"Compte Crans" => [
|
"Compte Crans" => [
|
||||||
'plugin' => 'LDAPAuthentication2',
|
'plugin' => 'LDAPAuthentication2',
|
||||||
|
|
@ -108,9 +115,14 @@ in
|
||||||
'domain' => 'crans'
|
'domain' => 'crans'
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
# "Note BDE" => [
|
"Note BDE" => [
|
||||||
# 'plugin' => 'OpenIDConnect',
|
'plugin' => 'OpenIDConnect',
|
||||||
# ]
|
'data' => [
|
||||||
|
'providerURL' => 'https://note.crans.org/o/',
|
||||||
|
'clientID' => $SecretAgeOpenIDClientID,
|
||||||
|
'clientsecret' => $SecretAgeOpenIDClientSecret,
|
||||||
|
]
|
||||||
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
# Theme
|
# Theme
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue