From ISPWiki

Jump to: navigation, search


CDN resource

Creating the item type

  1. Go to the Item types and create a new type specifying uniservice as processing module and onappcdn as internal name. Select the check box "Requires server"
  2. Add the following required parameters:
    1. "Resource id" (name may vary), internal name - cdn_resource_id. Parameter type - "Specify when processing", input field - "Text field". You may forbid changing this parameter after it is processed.
    2. "Domain name" (name may vary), internal name - cdn_hostname. Parameter type - "Specify when ordering", input field - "Text field", validator - "Domain name", edit function - "Everyone at anytime".
    3. "Content source" (name may vary), internal name - origin. Parameter type - "Specify when ordering", input field - "Text field", validator - "Domain name" or "IP address", edit function - "Everyone at anytime". You can also selet "List".
    4. For HTTP_PUSH and STREAM_VOD_PUSH: "FTP password" (name may vary), internal name - ftp_password. Parameter type - "Specify when processing", input field - "Text field", parameters cannot be changed.
  3. Additional parameters (internal name is specified):
    1. cdn_type - can be both parameter, and package add-on. By default HTTP_PULL is used. Possible values:
      • HTTP_PUSH
      • HTTP_PULL

CDN user

Virtual servers

Integration module parameters

For managing the integration module you can create the file /usr/local/ispmgr/etc/cponapp.conf and specify the following parameters:

  • DoNotCreateUsers - disable user creation upon the service setup on the OnApp server. It can be specified either as
Option DoNotCreateUsers

or as

DoNotCreateUsers on

When using this option make sure the user exists before creating the service on the OnApp server.

  • UserGroup - name of the group where users will be placed.
  • UserRole - name of the role that will be assigned to the users.


Q: Can we create the "traffic" package add-on and bill it based on statistics? I.e. the service will be blocked either when the period expires or when traffic usage is exceeded? What the cached and non_cached parameters can be used for and where I should specify them?

A: Cached and non_cached - cached and non-cached traffic correspondingly (traffic is not divided into incoming and outgoing for CDN) You should complete the following steps: "Item types"=>"OnApp"=>"Configuration". Create an add-on (or several, depending on your needs) with internal name as cached and/or non_cached.

Q: Normally the billing system generates expenses for the previous day. How to calculate expenses for today?

A: Specify into cponapp.conf the following parameters

CurDatePrice package_id

where package_id - id of the package for which the value for the current day should be calculated. The following service is used for statistics collection

sbib/cponapp getsats <server_id>

cponapp will calculate traffic usage statistics, delete expenses (for those clients who have different data for traffic usage) for the current day. Then billserver will start and generate new expenses considering changes in traffic.

Q: We need the aflexi_resource_id variable that we can send to a client when activating thw service. Can we get the value of this variable as the service parameter?

A: Unfortunately, it's not possible.

Was this helpful? Yes | No
Personal tools