From bf631babdb4ac570bb4693cb8788dc6f4728e349 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Sun, 27 Aug 2017 14:52:57 +0200 Subject: [PATCH] monitoring: add default page index.html MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This allows to acces monitoring interface using url HOST/monitoring/ when option --monitoring is set. Change-Id: If7dfc89e4c4db0d87ec5c8e74f9243691a3ec0e8 Signed-off-by: José Bollo --- src/afb-config.c | 2 +- test/monitoring/index.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 120000 test/monitoring/index.html 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 /monitoring/monitor.html"}, + {SET_MONITORING, 0, "monitoring", "enable HTTP monitoring at /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 -- 2.16.6