Skip to content

Commit a2d297b

Browse files
committed
Update TrustProxies middleware to remove default proxy value and enhance configuration clarity; add queue worker startup to wait-for-mysql script
1 parent b1feee3 commit a2d297b

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

app/Http/Middleware/TrustProxies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TrustProxies extends Middleware
1212
*
1313
* @var array<int, string>|string|null
1414
*/
15-
protected $proxies = '*';
15+
protected $proxies;
1616

1717
/**
1818
* The headers that should be used to detect proxies.

wait-for-mysql.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ php artisan migrate --force
3838

3939
# Khởi động PHP-FPM
4040
echo "Khởi động dịch vụ PHP-FPM..."
41-
php-fpm
41+
php-fpm
42+
43+
# chạy queue worker
44+
echo "Chạy queue worker..."
45+
php artisan queue:work --daemon --sleep=3 --tries=3

0 commit comments

Comments
 (0)