monitoring: add default page index.html
authorJosé Bollo <jose.bollo@iot.bzh>
Sun, 27 Aug 2017 12:52:57 +0000 (14:52 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Sun, 27 Aug 2017 13:00:29 +0000 (15:00 +0200)
This allows to acces monitoring interface using
url HOST/monitoring/ when option --monitoring is set.

Change-Id: If7dfc89e4c4db0d87ec5c8e74f9243691a3ec0e8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-config.c
test/monitoring/index.html [new symlink]

index b11f8a1..f08081f 100644 (file)
@@ -171,7 +171,7 @@ static AFB_options cliOptions[] = {
        {SET_EXEC,          0, "exec",        "Execute the remaining arguments"},
 
 #if defined(WITH_MONITORING_OTPION)
-       {SET_MONITORING,    0, "monitoring",  "enable HTTP monitoring at <ROOT>/monitoring/monitor.html"},
+       {SET_MONITORING,    0, "monitoring",  "enable HTTP monitoring at <ROOT>/monitoring/"},
 #endif
        {0, 0, NULL, NULL}
 /* *INDENT-ON* */
diff --git a/test/monitoring/index.html b/test/monitoring/index.html
new file mode 120000 (symlink)
index 0000000..fb6f3b7
--- /dev/null
@@ -0,0 +1 @@
+monitor.html
\ No newline at end of file