Restyle 🚧 Migrate from Sentry to GlitchTip #130

Closed
restyled-io[bot] wants to merge 2 commits from restyled/glitchtip into main

View File

@@ -12,21 +12,22 @@ require_once __DIR__ . "/app_functions.php";
// Sentry
Sentry\init([
'dsn' => 'https://8d8f4632fe3e4ec9b005a1b60b660ba5@o435706.ingest.sentry.io/5395475',
'dsn' => 'https://7c4607ed5e804d08926cc0bbc0d3fbe9@app.glitchtip.com/59',
'release' => get_version(),
]);
// Database auto-generation
if (file_exists("/../includes/install.php")) {
return;
add_action('run_db_populate');
return;
add_action('run_db_populate');
}
function run_db_populate() {
function run_db_populate()
{
// all my glorious one-time-magic.
include( "/../includes/install.php" );
// after all execution rename your file;
rename( "/../includes/install.php", "/../includes/install-backup.php");
include("/../includes/install.php");
// after all execution rename your file;
rename("/../includes/install.php", "/../includes/install-backup.php");
}
// Session
@@ -38,8 +39,9 @@ $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
// OpenID Connect
use Jumbojett\OpenIDConnectClient;
$oidc = new OpenIDConnectClient($_ENV['OIDC_HOST'], $_ENV['OIDC_CLIENT_ID'], $_ENV['OIDC_CLIENT_SECRET']);
if ($_ENV['OIDC_DISABLE_SSL'] == "true") {
$oidc->setVerifyHost(false);
$oidc->setVerifyPeer(false);
$oidc->setVerifyHost(false);
$oidc->setVerifyPeer(false);
}