Nginx Certbot Automationยถ

๐Ÿ”ฅ Descriptionยถ

This role automates the setup of an automatic Letโ€™s Encrypt certificate renewal system for Nginx using Certbot. It ensures that SSL/TLS certificates are renewed seamlessly in the background and that Nginx reloads automatically after successful renewals.

๐Ÿ“– Overviewยถ

Optimized for Archlinux systems, this role installs the certbot-nginx package, configures a dedicated systemd service for certificate renewal, and integrates with a sys-timer to schedule periodic renewals. After a renewal, Nginx is reloaded to apply the updated certificates immediately.

Key Featuresยถ

  • Automatic Renewal: Schedules unattended certificate renewals using sys-timers.

  • Seamless Nginx Reload: Reloads the Nginx service automatically after successful renewals.

  • Systemd Integration: Manages renewal operations reliably with systemd and sys-alm-compose.

  • Quiet and Safe Operation: Uses --quiet and --agree-tos flags to ensure non-interactive renewals.

๐ŸŽฏ Purposeยถ

The Nginx Certbot Automation role ensures that Letโ€™s Encrypt SSL/TLS certificates stay valid without manual intervention. It enhances the security and reliability of web services by automating certificate lifecycle management.

๐Ÿš€ Featuresยถ

  • Certbot-Nginx Package Installation: Installs required certbot plugins for Nginx.

  • Custom Systemd Service: Configures a lightweight, dedicated renewal service.

  • Timer Setup: Uses sys-timer to run certbot renewals periodically.

  • Failure Notification: Integrated with sys-alm-compose for alerting on failures.

๐Ÿ”— Learn Moreยถ