Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Per Reseller Configuration

The structure of the your configuration file allows you to have different settings for different Resellers in the system. By default, the file contains a single section called "default" with all custom settings. If you want to have multiple Client Panels (for example, separated by domain names), you need to add another section with a simple distinguishable name and put all related settings in this section. The name may consist of Latin characters, numbers, minus and underscore characters

After that, you need to pass this name from your web-server to the panel using FastCGI parameter called "CONFIG_ID". It will tell panel which part of config to read to display a related Client Panel. If you are using nginx as your web server, use the following statement to pass the parameters:

Code Block
languagebash
titleNginx Config
fastcgi_param CONFIG_ID "special";

Additionally, in the admin panel of the billing system, you'll need to add a User for each Reseller in the System→Users section. For each such user, set the API - Client Portal Role. From settings set up there, you will also get a login, password, and CoreAPI token values for the customer-params.json file.

Panel
borderColor#ffffb3
bgColor#ffffb3
borderWidth2px

(warning)   Attention

Please note that for correct work each Reseller has to have its own separate redis databases (redisMain and redisCache are at db 1 and 2 respectively by default)Redis instance supports 16 databases (0-15 in numeric values) by default. You can increase the number of available databases in Redis config if needed.

Configuration Options

As mentioned above, you can use /opt/jerasoft/vcs/portal-backend/config/customer-params.default.json file as a reference for all available parameters. The table below describes each of them. Please put all settings into your config file and do not change customer-params.default.json as it will be overwritten on the system update.

...