Updated env vars
Update sample_env
This commit is contained in:
parent
f46853f686
commit
8cb8353cc5
@ -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=
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user