pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/zoneminder security/zoneminder: Update exampl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4be02c5214c9
branches:  trunk
changeset: 335363:4be02c5214c9
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Tue Jun 18 12:36:59 2019 +0000

description:
security/zoneminder: Update example apache config to 24

diffstat:

 security/zoneminder/Makefile              |   4 ++--
 security/zoneminder/files/zoneminder.conf |  12 ++++++++----
 2 files changed, 10 insertions(+), 6 deletions(-)

diffs (43 lines):

diff -r 30849c8274d9 -r 4be02c5214c9 security/zoneminder/Makefile
--- a/security/zoneminder/Makefile      Tue Jun 18 12:33:43 2019 +0000
+++ b/security/zoneminder/Makefile      Tue Jun 18 12:36:59 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.41 2019/06/18 12:33:43 gdt Exp $
+# $NetBSD: Makefile,v 1.42 2019/06/18 12:36:59 gdt Exp $
 
 PKGNAME=       ${DISTNAME:S/ZoneMinder-/zoneminder-/}
 DISTNAME=      ZoneMinder-1.28.1
-PKGREVISION=   19
+PKGREVISION=   20
 CATEGORIES=    security
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=ZoneMinder/}
 GITHUB_PROJECT=        ZoneMinder
diff -r 30849c8274d9 -r 4be02c5214c9 security/zoneminder/files/zoneminder.conf
--- a/security/zoneminder/files/zoneminder.conf Tue Jun 18 12:33:43 2019 +0000
+++ b/security/zoneminder/files/zoneminder.conf Tue Jun 18 12:36:59 2019 +0000
@@ -1,10 +1,13 @@
 # This Apache configuration puts ZoneMinder under /zm.
+# Access is limited to localhost, as a safe default until
+# intentionally changed.
 
 ScriptAlias /zm/cgi-bin/ "@ZM_HTTPD_CGIBIN@/"
 
 <Directory "@ZM_HTTPD_CGIBIN@">
-  Order allow,deny
-  Allow from all
+  <RequireAny>
+    Require ip 127.0.0.1
+  </RequireAny>
 </Directory>
 
 Alias /zm "@ZM_HTTPD_ROOT@"
@@ -13,6 +16,7 @@
   php_flag register_globals off
   php_flag short_open_tag on
   DirectoryIndex index.php
-  Order allow,deny
-  Allow from all
+  <RequireAny>
+    Require ip 127.0.0.1
+  </RequireAny>
 </Directory>



Home | Main Index | Thread Index | Old Index