Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors
180 Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

How to change configuration

ThingsBoard Edge is configured via environment variables. Set them in the configuration file and restart the service — no YAML editing or config file merging is required when upgrading.

The full list of Edge-specific cloud.* environment variables is in Configuration reference. For transport, database, queue, and caching variables, see the other pages in this Reference section.

Set environment variables in the Edge configuration file:

Terminal window
sudo nano /etc/tb-edge/conf/tb-edge.conf

Add or edit variables using export syntax:

Terminal window
export CLOUD_RPC_HOST=my-thingsboard-server.example.com
export CLOUD_ROUTING_KEY=your-edge-key
export CLOUD_ROUTING_SECRET=your-edge-secret

Restart the service to apply changes:

Terminal window
sudo systemctl restart tb-edge

Set environment variables in your Docker Compose file under the tb-edge service:

services:
tb-edge:
image: thingsboard/tb-edge:latest
environment:
CLOUD_RPC_HOST: my-thingsboard-server.example.com
CLOUD_ROUTING_KEY: your-edge-key
CLOUD_ROUTING_SECRET: your-edge-secret
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/tb_edge

Restart the container to apply changes:

Terminal window
docker compose down && docker compose up -d

Set environment variables in the Edge Deployment or StatefulSet:

env:
- name: CLOUD_RPC_HOST
value: "my-thingsboard-server.example.com"
- name: CLOUD_ROUTING_KEY
valueFrom:
secretKeyRef:
name: tb-edge-credentials
key: routingKey
- name: CLOUD_ROUTING_SECRET
valueFrom:
secretKeyRef:
name: tb-edge-credentials
key: routingSecret