Commit e484ed27 authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix(mail+assets): fix SMTP TLS cert verification and publish Livewire assets on boot

- Mail: Use verify_peer=false for internal Docker SMTP (self-signed cert on
  srv-captain--mail). Without this, STARTTLS fails with certificate verify
  error and no emails are sent.
- Livewire: Add livewire:publish --assets to entrypoint.sh so the JS file
  is available after container restarts (assets live in public/ which isn't
  in a persistent volume).
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 29d53586
...@@ -8,6 +8,7 @@ return [ ...@@ -8,6 +8,7 @@ return [
'smtp' => [ 'smtp' => [
'transport' => 'smtp', 'transport' => 'smtp',
'url' => env('MAIL_URL'),
'host' => env('MAIL_HOST', 'srv-captain--mail'), 'host' => env('MAIL_HOST', 'srv-captain--mail'),
'port' => env('MAIL_PORT', 587), 'port' => env('MAIL_PORT', 587),
'encryption' => env('MAIL_ENCRYPTION', 'tls'), 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
...@@ -15,6 +16,7 @@ return [ ...@@ -15,6 +16,7 @@ return [
'password' => env('MAIL_PASSWORD', 'Alarcade123#'), 'password' => env('MAIL_PASSWORD', 'Alarcade123#'),
'timeout' => null, 'timeout' => null,
'local_domain' => 'ugcheaven.caprover.al-arcade.com', 'local_domain' => 'ugcheaven.caprover.al-arcade.com',
'verify_peer' => false,
], ],
'log' => [ 'log' => [
......
...@@ -26,6 +26,10 @@ done ...@@ -26,6 +26,10 @@ done
echo "=== Running migrations ===" echo "=== Running migrations ==="
php artisan migrate --force || echo "WARNING: Migrations failed, continuing startup..." php artisan migrate --force || echo "WARNING: Migrations failed, continuing startup..."
# Publish Livewire assets
echo "=== Publishing assets ==="
php artisan livewire:publish --assets 2>/dev/null || true
# Cache configuration for performance # Cache configuration for performance
echo "=== Caching config ===" echo "=== Caching config ==="
php artisan config:cache php artisan config:cache
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment