...
You can have different property configuration in each config json file, but most important is that config.endpoint property points to its related API subdomain URL:
Code Block |
---|
# grep endpoint /var/www/html/ui/config/*
/var/www/html/ui/config/theme1.json: "config.endpoint": "https://theme1.example.com/api",
/var/www/html/ui/config/theme2.json: "config.endpoint": "https://theme2.example.com/api", |
...
Code Block |
---|
# tree /etc/httpd/conf.d/ /etc/httpd/ . ??? conf.d/ ? ??? api.conf ? ??? theme1.conf ? ??? theme2.conf |
First of all, let's have a look to api.conf. This VirtualHost configuration file will group SSL access for all Abiquo Appliance Manager webapps and API endpoint: (api.conf)
...
Code Block |
---|
# grep api.location /opt/abiquo/config/abiquo.properties
abiquo.server.api.location = https://api.example.com/api |
Add certificates to Tomcat trust store
In the sample setup we used a wildcard certificate which allows us to use same certificate file for all VirtualHost configuration files. However, if you are using different certificates per each DNS name, you will need to specify correspondent certificate, key an CA files in the Apache VirtualHost configuration files.
You only need to ensure that abiquo.server.api
...
.location property points to the common API URL:
Code Block |
---|
# grep api.location /opt/abiquo/config/abiquo.properties
abiquo.server.api.location = https://api.example.com/api |
grep api.location /opt/abiquo/config/abiquo.properties
abiquo.server.api.location = https://themeapi.bcn.abiquo.com/api
...