# Deployment (Ultrahost VPS / shared)

## Nginx docroot

Point to `backend/public`.

## Cron

```cron
* * * * * cd /home/user/fx/backend && php artisan schedule:run >> /dev/null 2>&1
```

Scheduled tasks:
- `rates:fetch` — every 1–5 minutes
- `jobs:process` — queue table worker

## PHP limits

- `max_execution_time` 120 for batch recalc
- `memory_limit` 256M

## WebSocket

Not required. User UI polls `/api/trades/summary` every 5 seconds.

## SSL

Use Let's Encrypt on VPS; Ultrahost panel SSL on shared.
