πConfigure
In this section you will learn how to (re-)configure a nod
When creating a new node you can use the command line or create the YAML configuration file manually. In case you want to reconfigure a node you need to edit the YAML file.
π§ Configure using the Wizard
The most straight forward way of creating a new server configuration is using the command vnode new which allows you to configure the most basic settings.

By default the node configuration file is stored at user level, which isolates this configuration from other users. In case you want this configuration to be available for all users, simply add the --system flag when you invoke vnode new.
Create / Edit configuration file
The configuration wizard outputs a YAML file which can be loaded into vantage6. It is also possible to create this file yourself, to see Configuration File Structure or an example on our github page. This file can be stored (and referred to) at any location at the machine, although it recommended to use either the vantage6 system or user folder. These folders are different per operating system.
Windows
C:\ProgramData\vantage6\node
C:\Users\<user>\AppData\Local\vantage6\node
MacOS
/Library/Application Support/vantage6/node
/Users/<user>/Library/Application Support/vantage6/node
Linux
/etc/vantage6/node
/home/<user>/.config/vantage6/node
π Configuration File Structure
Similar to the server, each node instance (configuration) can have multiple environments. You can specify these under the key environments which allows four types: dev , test,acc and prod .
If you do not want to specify any environment, you should only specify the key application .
In the end, the configuration file should have the following structure:
π° Parameter description
Parameter
Details
api_key
API key used to authenticate at the server.
server_url
URL of the vantage6 server.
port
Port of the vantage6 server. Should be 443 in most cases.
api_path
Path of the API. Usually empty or /api.
task_dir
Local task directory name
encryption
Section that contains encryption settings:
enabled: Boolean to indicate whenever encryption is used or not. private_key: path to private key file.
See here for more details.
docker_registries
Section that contains a list Docker registry login credentials:
registry: url of the docker registry
username: username
password: password
See here for more detail.
allowed_images
List of regular expressions that control which algorithms are allowed on this node. See here for more detail.
databases
List of databases in key:value pair (π broken in current version. Will be fixed in a future release, only the default database can be used.)
logging
file: filename of the log-file, used by RotatingFileHandler
backup_count: the number of log files that are kept, used by RotatingFileHandler
max_size: size kb of a single log file, used by RotatingFileHandler
format: input for logging.Formatter, see here.
level: debug level used, see here.
use_console: whenever the output needs to be shown in the console
algorithm_env
List of additional environment variables you want to provide to the algorithm containers. See here for more detail.
π Encryption
Both the server and node need to agree if encryption is used or not. Encryption at the server is managed at collaboration level, i.e. each collaboration determines whenever encryption of all communication is used or not. You can enable or disable encryption in the configuration file by setting the enabled key in the encryption section.
To generate a new private key and upload the public key to the server you can use the command vnode create-private-key. You can also generate the key yourself and upload it by using the /organization/<id> endpoint.
π³ Allowed Images
To control which algorithms are allowed at the node you can set the allowed_images key in the configuration file. This is expected to be a valid regular expression.
π³ Docker Login
If you are using a private docker repository the environment in which the node needs to be logged in to that repository. In case the Dockerized version of vantage6 is used you need to specify this in the configuration file using the docker_registries key.
π Extra Environment Variables [2.0.1+]
It is possible to define additional environment variables for the algorithm containers. For example, this could be useful for sharing credentials for accessing a data-store.
Last updated
Was this helpful?