Configuration file? What is it? 🤔
The configuration file is a file that contains the parameters of your application, such as the main file, memory, version, and other parameters. This file is used to configure and deploy your application on the DS Cloud platform.Creating the configuration file
It’s very simple to create the configuration file, just create a file with the namedscloud.config and put the configuration parameters inside it.
Configuration parameters
Below you can see the configuration parameters that you can use in your configuration file.MAIN [*]
The MAIN parameter is used to define the main file of your application.
Example:
Also supports subdirectories.
This parameter has a maximum of 32 characters.
This configuration is IGNORED if you use the START parameter.
MEMORY [*]
The MEMORY parameter is used to define the amount of memory that your application will use on the DS Cloud platform.
The value is in megabytes (MB).
The minimum memory for a bot is 256MB and for a website is 512MB.
VERSION [*]
The VERSION parameter is used to define the version of your application.
For each language, there is a different version, see the table below.
| Language | Version recommended | Version latest |
|---|---|---|
| JavaScript [Node.js] | 22.11.0 | 23.1.0 |
| Python | 3.13.0 | 3.13.0 |
| Java | JDK 17 | JDK 22 |
DISPLAY_NAME [*]
The DISPLAY_NAME parameter is used to define the name of your application.
Example:
This parameter has a maximum of 32 characters.
DESCRIPTION
The DESCRIPTION parameter is used to define the description of your application.
Example:
This parameter has a maximum of 280 characters.
AUTORESTART
The AUTORESTART parameter is used to define if your application should restart automatically if it crashes.
Example:
By default, this parameter is set to
true.SUBDOMAIN
The SUBDOMAIN parameter is used to define the subdomain of your website.
Example:
This parameter has a maximum of 63 characters.
Website URL will be: mysite.dscloudweb.pt
Examples of configuration for bots
We have some examples of configurations for bots, below you can see some examples.This example just uses required parameters. (minimum configuration)
This example is a bot with all parameters.
This example uses all parameters and CUSTOM STARTUP COMMAND in a bot.
Examples of configuration for websites
We have some examples of configurations for websites, below you can see some examples.Website URL will be: mysite.dscloudweb.pt
This example uses all parameters and CUSTOM STARTUP COMMAND in a website.
Reinforcing the limits
For security and performance reasons, there are limits on the configuration parameters. Below you can see the limits of each parameter.| Parameter | Character limit |
|---|---|
| MAIN | 32 characters |
| DISPLAY_NAME | 32 characters |
| DESCRIPTION | 280 characters |
| START | 128 characters |
| SUBDOMAIN | 63 characters |