Install the VDC Control Panel
This module provide the end user with a control panel to managed a virtual datacenter.
Also see the GitBook for the VDC Control Panel.
First clone the 0-complexity/G8VDC repository from GitHub on to your local machine.
It will come with following two deployment scripts:
deploy.sh
#!/usr/bin/env bash # First argument of this script should be the password of the cloudscalers user on the machine hosting the docker WHMCS container set -euf rootpassword=$1 tar -cvzf cockpit.tgz whmcs scp -P 2222 cockpit.tgz [email protected]:/tmp/ scp -P 2222 docker-deploy-yves.sh [email protected]:/tmp/docker-deploy.sh ssh -p 2222 -t [email protected] "echo $rootpassword | sudo -S -i bash /tmp/docker-deploy.sh" rm -f cockpit.tgz
docker-deploy.sh
#!/usr/bin/env bash set -euf cd /tmp rm -rf whmcs html tar -xvf cockpit.tgz mv whmcs html mv html/templates/itsyouonline html/templates/fusion docker cp html whmcs:/var/www/ rm -rf html cockpit.tgz docker-deploy-yves.sh
Make sure to change the IP addresses in the first script so it deploys to your WHMCS environment.
Lookup the password of the cloudscalers user of the virtual machine hosting the WHMCS Docker container, and use it execute deploy.sh
:
bash deploy.sh <cloudscalers_password>
Next you will need
Reverse Proxy
In order to cope with the same-origin policy you will need to set-up a reverse proxy for the VDC Control Panel to connect to the G8 node.
Add following lines in between the /etc/apache2/sites-enable/000-default.conf
configuration file:
<VirtualHost *:443>
SSLProxyEngine On
RewriteEngine On
RewriteRule /restmachine/.* - [E=G8_DOMAIN:%{HTTP:X-G8-DOMAIN}]
ProxyPassInterpolateEnv On
ProxyPass /restmachine/ https://${G8_DOMAIN}/restmachine/ interpolate
ProxyPassReverse /restmachine/ https://${G8_DOMAIN}/restmachine/ interpolate
</VirtualHost>
`