Module Description
SAAS Website Plans - DB Filter Extension. Adds DB Filter server group configuration to website subscription plans, enabling plan purchases to be deployed on DB Filter servers.
Dependencies
sadeem_subscription_websitesadeem_saas_dbfilter
Extension
This module extends website subscription plans with a DB Filter Server Group field. When the subscription type is set to dbfilter, the system uses the server group to auto-select the best DB Filter server for the purchased subscription.
Additional Plan Fields
- Subscription Type - Extended with
DbFilteroption - DB Filter Server Group - Server group for auto-assigning subscriptions (required when type is
dbfilter)
How It Works
- Plan is configured with type
DbFilterand a server group - Customer purchases the plan through the website flow
- After payment,
get_best_server()selects the optimal server from the group - All server-related fields (IP, ports, domain, Cloudflare, Nginx) are set from the selected server
- Subscription is created and deployed on the DB Filter server
Publishing Validation
When publishing a DB Filter plan, the system validates that a DB Filter Server Group is configured.