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\init([
'dsn' => 'https://8d8f4632fe3e4ec9b005a1b60b660ba5@o435706.ingest.sentry.io/5395475',
'dsn' => 'https://7c4607ed5e804d08926cc0bbc0d3fbe9@app.glitchtip.com/59',
'release' => get_version(),
]);
@@ -22,7 +22,8 @@ if (file_exists("/../includes/install.php")) {
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;
@@ -38,6 +39,7 @@ $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);