- Introduce Nginx service in docker-compose for handling HTTP/HTTPS traffic. - Configure Nginx with SSL support and health checks for Grafana and Prometheus. - Update env.template to include SERVER_IP and STATUS_PAGE_PASSWORD variables. - Enhance Ansible playbook with tasks for Nginx installation, SSL certificate generation, and configuration management.
25 lines
717 B
Plaintext
25 lines
717 B
Plaintext
# Status page configuration (for future uptime kuma integration)
|
|
|
|
# Rate limiting for status page
|
|
location /status {
|
|
# Basic authentication for status page
|
|
auth_basic "Status Page Access";
|
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
|
|
|
# Placeholder for future uptime kuma integration
|
|
# For now, show nginx status
|
|
access_log off;
|
|
return 200 '{"status": "ok", "nginx": "running", "timestamp": "$time_iso8601"}';
|
|
add_header Content-Type application/json;
|
|
}
|
|
|
|
# Nginx status stub (for monitoring)
|
|
location /nginx_status {
|
|
stub_status on;
|
|
access_log off;
|
|
allow 127.0.0.1;
|
|
allow 172.16.0.0/12; # Docker networks
|
|
allow 192.168.0.0/16; # Private networks
|
|
deny all;
|
|
}
|