Nginx log rotation example config
logrotate -- is an utility that helps automate old logs processing.
Get real user ip address while using cloudflare
You, probably, are looking for this: $_SERVER["HTTP_CF_CONNECTING_IP"]
Free ssl certificate
TLDR: certbot certonly --webroot --agree-tos --expand -w /path/to/your/domain/public/dir/ -d yourdomain.name,www.yourdomain.name