Update & Maintenance Guide
Regularly updating NodeAuth ensures you receive the latest security patches and functional improvements.
☁️ Cloudflare Worker Update
- Automatic Update: If you have configured GitHub Action, simply execute
Sync Forkin your forked repository. GitHub will automatically trigger the deployment. - Manual Update:
- Execute
git pulllocally to synchronize the latest code. - Run
npm run deployto republish.
- Execute
🐳 Docker Update
If you use Docker for deployment, updating is very simple:
bash
# 1. Enter your deployment directory
cd /path/to/nodeauth
# 2. Pull the latest image
docker compose pull
# 3. Restart the service
docker compose up -d
# 4. Clean up old images (Optional)
docker image prune -f🛠️ Maintenance Suggestions
- Regular Backups: Although the system supports automatic backups, it is recommended to manually export a
JSONfile to an offline drive monthly. - Monitor Logs:
- Docker:
docker logs -f nodeauth - Worker: View
Real-time Logsin the Cloudflare dashboard.
- Docker:
- Check Token Expiration: If you use WebDAV or S3, periodically check if the cloud storage Access Key/Secret Key are still valid.
WARNING
Pre-update Advice: Before performing any major version updates, please ensure you perform a "Data Export" to ensure your assets are absolutely safe.