redis dh #1

Supports: trusty

Add to new model

Description

DeviceHive makes any connected device part of the Internet of Things. It provides the communication layer, control software and multi-platform libraries to bootstrap development of smart energy, home automation, remote sensing, telemetry, remote control and monitoring software, and much more. Leave communications to DeviceHive and focus on product and innovation. Learn more at: http://devicehive.com


Overview:

This charm contains only nginx with configuration to proxy and load balance requests (optimized for websockets).
Works only in group with devicehive-dh-ka-ca and devicehive-pg-zk-ca charms.

Deploying:

juju deploy cs:~x3v947pl/trusty/devicehive-lb
juju add-relation devicehive-dh-ka-ca devicehive-lb

Configuration:

After deployment you can set DH_DOMAIN or DH_PORT variables

juju set devicehive-lb DH_DOMAIN=domain.com

or then unset them

juju unset devicehive-lb DH_DOMAIN

Using:

After successfull deployment go to http://<ip/domain>/dh to see/configure api endpoints.
Admin console is available here http://<ip/domain>/admin.
Login/password by default are dhadmin/dhadmin_#911.

Configuration

DH_DOMAIN
(string) DeviceHive domain for nginx configuration, if not set, public ip address will be used
DH_PORT
(string) DeviceHive port
80