From 4f386ca19c23977b961f390d614deeafab4101f2 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Mon, 6 Jan 2025 15:38:44 +0100
Subject: [PATCH] update config templates

---
 hooks/templates/inc_config.php.erb | 6 ++++++
 public_html/inc_config.php.dist    | 7 ++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/hooks/templates/inc_config.php.erb b/hooks/templates/inc_config.php.erb
index f9c9708..cf727fe 100644
--- a/hooks/templates/inc_config.php.erb
+++ b/hooks/templates/inc_config.php.erb
@@ -30,4 +30,10 @@ return array(
     // allow directory listing when accessing a path of a package
     // true is required to fetch all packages
     'showdircontent'=>true,
+
+    // --- monitoring
+
+    // appmonitor ip that is allowed to fetch data
+    'monitor-ips'=>[<%= @replace["monitorip"] %>],
+    
 );
diff --git a/public_html/inc_config.php.dist b/public_html/inc_config.php.dist
index 0d163ef..7fca9df 100644
--- a/public_html/inc_config.php.dist
+++ b/public_html/inc_config.php.dist
@@ -29,5 +29,10 @@ return array(
     'showdircontent'=>true,
 
     // Enable for troubleshooting
-    'debug'=>false,    
+    'debug'=>false,
+
+    // --- monitoring
+
+    // appmonitor ip that is allowed to fetch data
+    'monitor-ips'=>[],
 );
\ No newline at end of file
-- 
GitLab