Updated env vars

Update sample_env
This commit is contained in:
ben 2023-10-08 02:49:27 -04:00
parent f46853f686
commit 8cb8353cc5
3 changed files with 5 additions and 2 deletions

View File

@ -57,3 +57,6 @@ VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}" VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
BOT_SLACK_WEBHOOK_URL=
BOT_X_BOTAUTH=

View File

@ -12,7 +12,7 @@ class WebhookController extends Controller
public function webHookSend(String $payload) { public function webHookSend(String $payload) {
$data = ["text" => $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) public function sendQuote(Request $request)

View File

@ -15,7 +15,7 @@ class HeaderAuth
*/ */
public function handle(Request $request, Closure $next): Response 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); return response('Unauthorized', 401);
} }