Add automatic cron for client expiration check

This commit is contained in:
infosave2007
2025-11-08 09:36:23 +03:00
parent da2bd8f8fa
commit de73728733
2 changed files with 23 additions and 4 deletions
+9 -3
View File
@@ -106,10 +106,16 @@ curl -X POST http://localhost:8082/api/servers/1/restore \
### Automatic Client Expiration Check
Run via cron to auto-disable expired clients:
**Автоматически запускается в Docker контейнере** каждый час для отключения просроченных клиентов.
Проверить логи крона:
```bash
# Add to crontab (runs every hour)
0 * * * * docker compose exec web php /var/www/html/bin/check_expired_clients.php
docker compose exec web tail -f /var/log/cron.log
```
Запустить вручную:
```bash
docker compose exec web php /var/www/html/bin/check_expired_clients.php
```
### API Authentication