Skip to content

v1.5.1

Latest
Compare
Choose a tag to compare
@Ym0T Ym0T released this 09 Feb 23:00
· 8 commits to main since this release
232b7fa

πŸ“œ Changelog (Version 1.5.1 – 2025-02-10)

✨ New Features

πŸš€ Automatic Log Cleanup Before Cloudflared Startup

  • Logs are now automatically deleted if they exceed 10MB or are older than 30 days:
    • /home/container/logs/naccess.log
    • /home/container/logs/nerror.log
    • /home/container/logs/error.log
    • /home/container/logs/php_errors.log
    • /home/container/logs/php-fpm.log
  • πŸ“Œ Prevents excessive log accumulation and improves disk space management.

🎨 Improved Status Messages & Formatting

  • Color-coded console output for better readability:
    • πŸ”΅ Blue β†’ Headers & sections
    • 🟣 Purple β†’ Cleanup processes
    • 🟑 Yellow β†’ Status messages (e.g., "Waiting for Cloudflared to start...")
    • 🟒 Green β†’ Success messages
    • πŸ”΄ Red β†’ Errors or missing files
  • πŸ“’ More structured output with section dividers (────────────────────────).

πŸ›  Optimized Cloudflared Startup

  • Cloudflared startup process improved:
    • Better error handling:
      • If Cloudflared fails, the error is displayed immediately.
      • Last 10 log lines are shown for troubleshooting.
    • Safer PID file storage.

πŸ› Bug Fixes & Improvements

  • βœ… Improved Error Handling:
    • Cloudflared token validation: If missing or empty, a clear error is shown.
    • Log existence checks: No errors if logs don’t exist.
  • πŸ— Code Refactoring:
    • Better script structure with logical sections.
    • Standardized use of echo -e for consistent formatting.