diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-08-27 14:52:57 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-08-27 15:00:29 +0200 |
commit | bf631babdb4ac570bb4693cb8788dc6f4728e349 (patch) | |
tree | 5ad8141db969c9dd4d48d4a90690ccffe748d2d4 | |
parent | df098f275a09531fc545b2e1195c80d52a27656d (diff) |
monitoring: add default page index.html
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>
-rw-r--r-- | src/afb-config.c | 2 | ||||
l--------- | test/monitoring/index.html | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/afb-config.c b/src/afb-config.c index b11f8a10..f08081f5 100644 --- a/src/afb-config.c +++ b/src/afb-config.c @@ -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 index 00000000..fb6f3b77 --- /dev/null +++ b/test/monitoring/index.html @@ -0,0 +1 @@ +monitor.html
\ No newline at end of file |