Restyle 🚧 Migrate from Sentry to GlitchTip #130

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

View File

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