feat: enhance Ansible playbook and Nginx configuration with authentication and logrotate setup
- 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.
This commit is contained in:
22
env.template
22
env.template
@@ -27,3 +27,25 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user