From 0437ad2562c80c512877098e22ecd18e7323fa61 Mon Sep 17 00:00:00 2001 From: Napsty Date: Thu, 15 Dec 2022 08:34:23 +0100 Subject: [PATCH 1/2] Adding stats template with JSON output --- data/templates/stats-json.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 data/templates/stats-json.html diff --git a/data/templates/stats-json.html b/data/templates/stats-json.html new file mode 100644 index 0000000..e2a1348 --- /dev/null +++ b/data/templates/stats-json.html @@ -0,0 +1 @@ +{{ "version":"{version}", "open":{opens}, "requests":{reqs}, "bad":{badconns}, "denied":{deniedconns}, "refused":{refusedconns} } From 2f301538df8a6547c8db5fb42a30ac0a5ec671e0 Mon Sep 17 00:00:00 2001 From: Napsty Date: Thu, 15 Dec 2022 08:38:46 +0100 Subject: [PATCH 2/2] Adding stats template with JSON output --- data/templates/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/templates/Makefile.am b/data/templates/Makefile.am index e4b0134..040a8d9 100644 --- a/data/templates/Makefile.am +++ b/data/templates/Makefile.am @@ -3,7 +3,8 @@ templatesdir = $(pkgdatadir) TEMPLATES = \ debug.html \ default.html \ - stats.html + stats.html \ + stats-json.html templates_DATA = \ $(TEMPLATES)