- Added environment variables for project configuration in env.template. - Updated Ansible playbook to use environment variables for project settings and added tasks for monitoring authentication setup. - Enhanced Nginx configuration for Alertmanager and Prometheus with HTTP Basic Authentication. - Introduced logrotate configuration for managing log files and set up cron for daily execution. - Removed obsolete Uptime Kuma docker-compose file.
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
# Telegram Bot Configuration
|
|
TELEGRAM_MONITORING_BOT_TOKEN=your_bot_token_here
|
|
GROUP_MONITORING_FOR_LOGS=your_telegram_group_id_here
|
|
IMPORTANT_MONITORING_LOGS=your_important_logs_channel_id_here
|
|
|
|
# Monitoring Configuration
|
|
THRESHOLD=80.0
|
|
RECOVERY_THRESHOLD=75.0
|
|
|
|
# Status Update Configuration
|
|
STATUS_UPDATE_INTERVAL_MINUTES=2 # Интервал отправки статуса в минутах
|
|
|
|
# Alert Delays (in seconds) - prevent false positives from temporary spikes
|
|
CPU_ALERT_DELAY=30 # CPU alert delay: 30 seconds
|
|
RAM_ALERT_DELAY=45 # RAM alert delay: 45 seconds
|
|
DISK_ALERT_DELAY=60 # Disk alert delay: 60 seconds
|
|
|
|
# Prometheus Configuration
|
|
PROMETHEUS_RETENTION_DAYS=30
|
|
|
|
# Grafana Configuration
|
|
GRAFANA_ADMIN_USER=admin
|
|
GRAFANA_ADMIN_PASSWORD=admin
|
|
|
|
# Server Configuration
|
|
SERVER_IP=your_server_ip_here
|
|
|
|
# Status Page Configuration
|
|
STATUS_PAGE_PASSWORD=admin123
|
|
|
|
# Ansible Configuration (for one-time server setup)
|
|
# Основные настройки проекта
|
|
PROJECT_ROOT=/home/prod
|
|
DEPLOY_USER=deploy
|
|
DEPLOY_UID=1001
|
|
DEPLOY_GID=1001
|
|
|
|
# Старый сервер для миграции
|
|
OLD_SERVER=root@77.223.98.129
|
|
|
|
# Настройки мониторинга для Ansible
|
|
MONITORING_USERNAME=admin
|
|
MONITORING_PASSWORD=admin123
|
|
|
|
# SSL настройки
|
|
USE_LETSENCRYPT=false
|
|
|
|
# Logrotate настройки
|
|
LOGROTATE_RETENTION_DAYS=30
|
|
LOGROTATE_COMPRESS=true
|
|
LOGROTATE_DELAYCOMPRESS=true
|