1 recipe shared
Run as root as the Nginx conf files aren't accessible by the forge user by default. This will print a table of your sites with SSL enabled and when the certificate will expire. Useful for auditing.
#!/bin/bash printf "%-50s | %-25s\n" "SITE" "EXPIRES" echo "-------------------------------------------------------------------" for site in `grep -hR "ssl_certificate /etc/nginx/" /etc/nginx/sites-enabled/|awk '/ssl_certificate/ {print $2}'`; do