Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

...

UpCloud is a reliable cloud platform that enables you to deploy high performance cloud servers quickly and easily. Thanks to UpCloud integration with HostBill you can sell VPS Hosting by reselling UpCloud instances. With HostBill various billing models and flexible product configuration options you can charge your customers for OS templates, locations or VM plans. The whole account lifecycle is automated by HostBill. Clients are able to control and manage their resources from the client area. The access to client area functions is controled by the admin. Client can create, restart, start and stop their virtual machines, inject SSH keys, manage virtual machine’s firewall and access noVNC console. Admin area provides access and allows to manage billing details and account lifecycle.

Activating the module

...

  1. If the module is included in your HostBill edition you can download it from your client portal.
  2. If the module is not included in your HostBill edition you can purchase it from our marketplace and then download it from the client area.
  3. Once you download the module extract it in the main HostBill directory.
  4. Go to Settings → Modules → Hosting Modules, find and activate UpCloud module.

...

  1. Start by installing fortran & git:

    Code Block
    yum  -y install numpy python-devel gcc-gfortran git


  2. Create new system user, clone websockify and grant permissions.

    • Replace {$path} with the value set in the "Path to put websockify tokens" in HostBill connection details. In this sample we've used:  /home/websockify/target.conf.d)

      Code Block
      adduser websockify
      cd /home/websockify
      git clone https://github.com/novnc/websockify.git
      cd /home/websockify/websockify
      python setup.py install --force
      mkdir {$path}
      chmod 0777 {$path}
      chown -R websockify: /home/websockify


  3. Create cronjob as websockify user (crontab -e -u websockify), with following line replacing variables:

    Code Block
    */5 * * * * /home/websockify/websockify/run {$console_port} --token-plugin TokenFile --token-source {$path}


    • {$path} - Value of the "Path to put websockify tokens in" field. Ensure to make it writeable to world (chmod 777)
    • {$console_port} - Port on which the console will connect. Port used internally in the webserver (ie apache) configuration, should be different than  {$port}
  4. Finish by configuring your webserver. Replace :
    1. {$hostname} - Value of the "Websockify hostname" field set in steps above.
    2. {$port} - Value of the "Websockify local port" field


Info
titleNote

On server running websockify ensure to open TCP out ports 20000-65535 (as its being used by actual console)


Webserver configuration: Nginx 

...

Note
titleNote:

You can optionally use "Allow to select by client during checkout" checkbox.
This will automatically add new form items under Components → Forms allowing your client to configure server location, size or os template during order.
You can apply additional charges to those items.

For more generic product configuration details including price, automation, emails settings refer to Product Configuration article.

Configuring Client Functions   

...