Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Hosting Infrastructure with Multi-Server Support and Product Type Management #331

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Dec 25, 2024

This pull request was created by Sweep to resolve the following request by @curtisdelicata:

Add product types, such as one time, shared hosting, vps, dedicated. Add configuration in Filament 3 admin panel for adding hosting servers such as cPanel, Plesk, DirectAdmin or Virtualmin. Automatically provision shared hosting onto supported hosting servers and suspend on late payment and unsuspend when paid for. Also offer free 14 day trials of all services which the number of trial days can be set on the pricing of the hosting product.

Continue chatting at https://sweep-chat-demo.vercel.app/c/00ab2ab3-e485-455d-bd2a-2a3ceadd7a48.

Purpose

Implement a robust hosting infrastructure management system that supports multiple hosting servers, product types, and advanced provisioning capabilities with trial and server allocation features.

Description

This pull request introduces a comprehensive enhancement to the billing system's hosting management capabilities. The changes include:

  1. Creation of a product_types table to categorize and define different types of hosting products, including one-time and recurring services.
  2. Introduction of a hosting_servers table to manage multiple hosting servers with control panel support.
  3. Modification of the products_services table to include product type and hosting server associations, along with trial period settings.
  4. Significant improvements to the HostingService to support:
    • Dynamic server selection based on server load
    • Multi-control panel support (added Virtualmin)
    • Detailed logging of hosting account operations
    • Automatic server account tracking
  5. Added a Filament resource for managing hosting servers with comprehensive filtering and management capabilities.

Summary

  • Added migrations for product_types, hosting_servers, and products_services
  • Enhanced HostingService with:
    • Server selection logic
    • Expanded control panel support
    • Detailed logging
  • Created HostingServerResource for server management
  • Supported control panels: cpanel, plesk, directadmin, virtualmin
  • Introduced trial and server allocation features
  • Implemented server load balancing for account provisioning

@curtisdelicata curtisdelicata merged commit 57e892a into main Dec 25, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant