This guide describes how to install ThingsBoard Professional Edition from GCP Marketplace. Using this guide you will install bring-your-own-license (BYOL) version of the product. Basically, you get the license directly from ThingsBoard, Inc, but purchase corresponding server instances and infrastructure from GCP.
Open ThingsBoard Professional Edition BYOL product page on GCP Marketplace.
Click the Launch on Compute Engine button
You can take the default settings or customize them. When complete click Deploy button
That’s it! Your ThingsBoard instance is now deploying! When complete you should see:
In order to activate your ThingsBoard instance you will need to get the license secret. ThingsBoard Licenses are managed by ThingsBoard License Portal.
Please save your license secret to a safe place. We will use them later in this guide.
Once you get the license secret, you should put it to the thingsboard configuration file.
Open the file for editing using the following command:
sudo nano /etc/thingsboard/conf/thingsboard.conf
Locate the following configuration block:
# License secret obtained from ThingsBoard License Portal (https://license.thingsboard.io) # UNCOMMENT NEXT LINE AND PUT YOUR LICENSE SECRET: # export TB_LICENSE_SECRET=
and put your license secret. Please don’t forget to uncomment the export statement. See example below:
# License secret obtained from ThingsBoard License Portal (https://license.thingsboard.io) # UNCOMMENT NEXT LINE AND PUT YOUR LICENSE SECRET: export TB_LICENSE_SECRET=YOUR_LICENSE_SECRET_HERE
Execute the following command to start ThingsBoard:
sudo service thingsboard start
Now you can open this link in your browser:
Use this login to connect as system Administrator
Default password for System Administrator is sysadmin
Now you can proceed to the next steps.
Configure HAProxy to enable HTTPS
sudo certbot-certonly --domain smth.yourcompany.com --email [email protected] sudo haproxy-refresh