Docker's Remote API can be secured via TLS and client certificate verification.
First of all you need a few certificates and keys:
- CA certificate
- Server certificate
- Server key
- Client certificate
- Client key
| Sudo su | |
| Install Node Exporter: | |
| docker run -d --net="host" --pid="host" -v "/:/host:ro,rslave" quay.io/prometheus/node-exporter:latest --path.rootfs=/host | |
| Create Prometheus Config: | |
| nano prometheus.yml |
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>SSH Client</title> | |
| <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.5/socket.io.min.js"></script> | |
| <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
| <style> | |
| body { | |
| margin: 0; | |
| padding: 0; |
| <?php | |
| class DefaultController extends Controller | |
| { | |
| /** | |
| * Dashboard page. | |
| * @Permissions(perm="dashboard_view") | |
| * @Route("/", name="ITEDashboardBundle_index") | |
| * @Template() | |
| * @return array |
| #include <SoftwareSerial.h> | |
| // Important!! We use pin 13 for enable esp8266 | |
| #define WIFI_ENABLE_PIN 13 | |
| #define DEBUG 1 | |
| #define SSID "YOUR-WIFI-SSID" | |
| #define PASS "YOUR-WIFI-SECRET" |
| #include <PubSubClient.h> | |
| #include <ESP8266WiFi.h> | |
| const char* ssid = "................."; | |
| const char* password = "................"; | |
| char* topic = "esp8266_arduino_out"; | |
| char* server = "iot.eclipse.org"; | |
This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
| { | |
| "name": "socket.io.1.0", | |
| "version": "1.0.0", | |
| "description": "Socket.IO 1.0 using Primus", | |
| "main": "socket.io.1.0.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "repository": { | |
| "type": "git", |
| # install git | |
| yum install git -y | |
| # get nvm | |
| git clone git://github.com/creationix/nvm.git ~/nvm | |
| # activate nvm |