This script renews a Let's Encrypt certificate using acme.sh in Docker with Cloudflare DNS, then installs the new certificate into Synology DSM and restarts nginx.
- Uses CF_TOKEN and DOMAIN from environment
- Runs acme.sh to renew and install cert files into the local out directory
- Copies cert files into DSM's default certificate archive
- Regenerates DSM web config and restarts nginx