Before starting, ensure you have built Chartbrew using the guide Build and deploy.
Install Apache
As you already guessed, you will need Apache for this one. Below is guide on how to install it on Ubuntu 22.04:Set up VirtualHosts
Create a new Apache configuration file for the Chartbrew site.https
on it. Some providers offer that automatically, but in case that’s not happening have a look at Certbot as it’s super simple to set up and it’s free.
Troubleshooting the Chart Embedding feature
A problem that might arrise with embedding charts on other website is to do with theX-Frame-Options
header being set as deny
by the server. If your charts can’t load on other sites because of this problem make sure you add the following configuration to the VirtualHost
that serves your frontend:
https
, for example, don’t forget to add it there as well.