Updated env vars

Update sample_env
This commit is contained in:
ben committed 2023-10-08 02:49:27 -04:00
1 parent f46853f686
commit 8cb8353cc5
3 files changed
+5 -2

No files matched your search

+3
View File
@@ -57,3 +57,6 @@ VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
BOT_SLACK_WEBHOOK_URL=
BOT_X_BOTAUTH=
@@ -12,7 +12,7 @@ class WebhookController extends Controller
public function webHookSend(String $payload) {
$data = ["text" => $payload];
$response = Http::post(env('SLACK_WEBHOOK_URL'), $data);
$response = Http::post(env('BOT_SLACK_WEBHOOK_URL'), $data);
}
public function sendQuote(Request $request)
+1 -1
View File
@@ -15,7 +15,7 @@ class HeaderAuth
*/
public function handle(Request $request, Closure $next): Response
{
if ($request->header('X-BOTAUTH') !== env('X_BOTAUTH'))
if ($request->header('X-BOTAUTH') !== env('BOT_X_BOTAUTH'))
{
return response('Unauthorized', 401);
}