-
Make sure that you have the following tools installed on the host server.
Tool On Ubuntu On CentOS 7 htpasswd
sudo apt-get install apache2-utils
sudo yum install httpd-tools
-
get a fully-qualified domain name for your server, for which you control DNS. Call this the "FQDN" (fully-qualified domain name).
-
Createa a
.env
file as instructed in README.md. -
Be aware that the grafana env admin_password is ignored except on the first boot.
-
Follow the instructions from README.md to get grafana working and to get the server up.
-
verify that grafana is working at https://{FQDN}/ and https://{FQDN}/grafana
-
using
docker-compose apache run /bin/bash
,- add Apache's /etc/apache2/authdata as user www-data
mkdir /etc/apache2/authdata chown www-data /etc/apache2/authdata
- add Apache's /etc/apache2/authdata/.htpasswd as user www-data
touch /etc/apache2/authdata/.htpasswd chown www-data /etc/apache2/authdata/.htpasswd
- Add user logins for influxdb, queries, node-red. Make
USERS
be a list of login IDs.
export USERS="tmm amy josh" for each USER in $USERS ; do htpasswd /etc/apache2/authdata/.htpasswd $USER >>>>enter password twice done
- add Apache's /etc/apache2/authdata/.htgroup (owned by www-data)
# this assumes USERS is still set from previous step. touch /etc/apache2/authdata/.htgroup chown www-data /etc/apache2/authdata/.htgroup echo "node-red: ${USERS}" >>/etc/apache2/authdata/.htgroup echo "admin: ${USERS}" >>/etc/apache2/authdata/.htgroup echo "query: ${USERS}" >>/etc/apache2/authdata/.htgroup
-
verify that you can log in as https://{FQDN}/node-red/.
-
Current versions of influxdb may support an administrative interface at https://{FQDN}/influxdb/. If so, in the influxdb UI, change the query URL to https://{FQDN}/influxdb, [x] SSL. Don't fill in user name here, just press save. Browser will ask for credentials; provide credentials.