Skip to content

Commit fc595a6

Browse files
authored
Add SSL verification config (#68)
1 parent 22cca8a commit fc595a6

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

config/honeybadger.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
'client' => [
2222
'timeout' => 0,
2323
'proxy' => [],
24+
'verify' => env('HONEYBADGER_VERIFY_SSL', true),
2425
],
2526
'excluded_exceptions' => [],
2627
];

src/Commands/HoneybadgerInstallCommand.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,16 @@ function () {
156156
);
157157
}
158158
);
159+
160+
$this->tasks->addTask(
161+
'Write HONEYBADGER_VERIFY_SSL placeholder to .env.example',
162+
function () {
163+
return $this->installer->writeConfig(
164+
['HONEYBADGER_VERIFY_SSL' => ''],
165+
base_path('.env.example')
166+
);
167+
}
168+
);
159169
}
160170

161171
/**

tests/Commands/HoneybadgerInstallCommandTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public function prompts_for_options_and_outputs_all_successful_operations()
5353
'Write HONEYBADGER_API_KEY placeholder to .env.example' => true,
5454
'Publish the config file' => true,
5555
'Send test exception to Honeybadger' => true,
56+
'Write HONEYBADGER_VERIFY_SSL placeholder to .env.example' => true,
5657
], $commandTasks->getResults());
5758
}
5859

0 commit comments

Comments
 (0)