Skip to content

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_website
  • sadeem_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

  1. Subscription Type - Extended with DbFilter option
  2. DB Filter Server Group - Server group for auto-assigning subscriptions (required when type is dbfilter)

How It Works

  1. Plan is configured with type DbFilter and a server group
  2. Customer purchases the plan through the website flow
  3. After payment, get_best_server() selects the optimal server from the group
  4. All server-related fields (IP, ports, domain, Cloudflare, Nginx) are set from the selected server
  5. 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.