32 lines
833 B
Plaintext
32 lines
833 B
Plaintext
<?php
|
|
|
|
use OTPHP\TOTP;
|
|
|
|
$DOMAIN = 'machines.frogeye.fr';
|
|
$TOTP = new TOTP(
|
|
'newcommer@machines.frogeye.fr', // The label (string)
|
|
'CHANGEMECHANGEME', // The secret encoded in base 32 (string)
|
|
10, // The period (int)
|
|
'sha512', // The digest algorithm (string)
|
|
8 // The number of digits (int)
|
|
);
|
|
$TOTP->setIssuer('Machines Frogeye');
|
|
|
|
$GIT_APIS = array(
|
|
'github' => array(
|
|
'api' => 'https://api.github.com',
|
|
'token' => 'CHANGEME'
|
|
),
|
|
'gogs' => array(
|
|
'api' => 'https://try.gogs.io/api/v1',
|
|
'token' => 'CHANGEME'
|
|
),
|
|
'gitlab' => array(
|
|
'api' => 'https://gitlab.com/api/v3',
|
|
'token' => 'CHANGEME',
|
|
'authHeader' => 'PRIVATE-TOKEN: ',
|
|
),
|
|
);
|
|
|
|
?>
|