[Mapbender-commits] r8939 - trunk/mapbender/conf

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jun 26 02:49:25 PDT 2014


Author: hwbllmnn
Date: 2014-06-26 02:49:25 -0700 (Thu, 26 Jun 2014)
New Revision: 8939

Modified:
   trunk/mapbender/conf/mapbender.conf-dist
Log:
added example on how to limit max local data size in wmcs


Modified: trunk/mapbender/conf/mapbender.conf-dist
===================================================================
--- trunk/mapbender/conf/mapbender.conf-dist	2014-06-26 09:48:31 UTC (rev 8938)
+++ trunk/mapbender/conf/mapbender.conf-dist	2014-06-26 09:49:25 UTC (rev 8939)
@@ -1,8 +1,8 @@
 <?php
 # $Id$
 # http://www.mapbender.org/Mapbender.conf
-# Copyright (C) 2010 OSGeo 
- 
+# Copyright (C) 2010 OSGeo
+
 # --------------------------------------------
 # type of mapbender database
 # --------------------------------------------
@@ -13,12 +13,12 @@
 # --------------------------------------------
 define("DBSERVER", "%%DBSERVER%%"); //default "localhost"
 define("PORT", "%%DBPORT%%"); //default "5432"
-define("DB", "%%DBNAME%%"); 
+define("DB", "%%DBNAME%%");
 define("OWNER", "%%DBOWNER%%");
 define("PW", "%%DBPASSWORD%%");
 
 # --------------------------------------------
-# encoding - default characterset UTF-8 
+# encoding - default characterset UTF-8
 # --------------------------------------------
 define("CHARSET","UTF-8");
 
@@ -78,7 +78,7 @@
 # --------------------------------------------
 define('REALM', 'mapbender_registry');
 define('NONCEKEY', 'mapbender');
-$nonceLife = 300; 
+$nonceLife = 300;
 define('HTTP_AUTH_PROXY',"https://".$_SERVER['HTTP_HOST']."/http_auth"); //Problem - behind a rewrite rule - define it hardcoded?
 
 # --------------------------------------------
@@ -117,12 +117,12 @@
 # automatically exchanged with the metadata from the server,
 # when updating the service. It has to be done with help of
 # the metadata editor afterwards
-# 
+#
 # --------------------------------------------
 define("MD_OVERWRITE", true);
 
 # --------------------------------------------
-# mail settings for internal mapbender mails 
+# mail settings for internal mapbender mails
 # smtp mailing
 # for further settings check 'class_administration.php'
 # please check phpmailer for more information
@@ -137,7 +137,7 @@
 $mailHost = MAILHOST;
 $mailUsername =  MAILUSERNAME;
 $mailPassword =  MAILPASSWORD;
- 
+
 # --------------------------------------------
 # wms monitoring
 # --------------------------------------------
@@ -155,9 +155,9 @@
 # --------------------------------------------
 # Internationalization
 # --------------------------------------------
-define("USE_I18N", false);  // requires gettext for PHP. 
+define("USE_I18N", false);  // requires gettext for PHP.
 							// If "false", LANGUAGE is set to english
-define("LANGUAGE", "en");   // only available if USE_I18N is "true". 
+define("LANGUAGE", "en");   // only available if USE_I18N is "true".
 							// "en", "de", "bg", "gr", "nl", "hu", "it", "es","fr","pt"
 # --------------------------------------------
 # Notify subscribers and gui owners by email
@@ -171,9 +171,9 @@
 
 # --------------------------------------------
 # RSS
-# Mapbender > 2.7 generates a GeoRSS file which shows the changes in the mapbender service database. The 
+# Mapbender > 2.7 generates a GeoRSS file which shows the changes in the mapbender service database. The
 # GeoRSS file get entries when wms are uploaded, updated or deleted. The RSS file can be used to show the positions
-# of new layers and services on in the own mapframe or in other applications.  
+# of new layers and services on in the own mapframe or in other applications.
 # --------------------------------------------
 define("GEO_RSS_FILE", "../tmp/georss.xml");
 
@@ -188,8 +188,8 @@
 
 #---------------------------------------------
 # PREVIEW
-# This path is defined to allow a saving of preview pictures for the content of wms/layers and 
-# wmc docs. The preview can generated with the wms and wmc metadata editor guis and the previews are used 
+# This path is defined to allow a saving of preview pictures for the content of wms/layers and
+# wmc docs. The preview can generated with the wms and wmc metadata editor guis and the previews are used
 # by the metadata module and are distributed with the iso19139 files which can be generated by mapbender.
 #---------------------------------------------
 define("PREVIEW_DIR", "../geoportal/preview");
@@ -197,8 +197,8 @@
 #---------------------------------------------
 # METADATA
 # This path is defined to allow a saving of iso19139 xml files which are generated by mapbender and metador
-# The folder should be owned by the webserver user to allow writing of files which are generated from a php 
-# script. The content of the folder may be harvested 
+# The folder should be owned by the webserver user to allow writing of files which are generated from a php
+# script. The content of the folder may be harvested
 #---------------------------------------------
 define("METADATA_DIR", "../../metadata");
 
@@ -250,7 +250,7 @@
 
 # --------------------------------------------
 # Activate APC variable cache if wished and installed
-# class_map.php, frames/index.php, class_gui 
+# class_map.php, frames/index.php, class_gui
 #
 #define("MAPBENDER_VARIABLE_CACHE", false);
 #define("MAPBENDER_CACHE_TYPE", "apc");
@@ -284,9 +284,9 @@
 # Calculate bboxes for all supported SRS (Postgis needed)
 # This module will compute bboxes for all srs which will be found in the service capabilities and which are defined
 # in the array below. Normaly mapbender only uses bbox's which are given thru the service caps. In many use cases it is
-# needfull to have more than one bbox given (e.g. metadata). The array is defined to supress the calculation of to many 
-# srs like e.g. geoserver offers. The array should include all the srs which are used in the mapbender installation and 
-# which are usefull for the special community for which the installation was done (local-sdi, INSPIRE, ...) 
+# needfull to have more than one bbox given (e.g. metadata). The array is defined to supress the calculation of to many
+# srs like e.g. geoserver offers. The array should include all the srs which are used in the mapbender installation and
+# which are usefull for the special community for which the installation was done (local-sdi, INSPIRE, ...)
 # --------------------------------------------
 #define("SRS_ARRAY", "4326,31466,31467,31468,25832");
 
@@ -303,6 +303,8 @@
 define('SEARCH_COLUMN1', 'mb_user_name');
 define('SEARCH_COLUMN2', 'mb_user_email');
 
+define('MAX_WMC_LOCAL_DATA_SIZE', 1024*1024);
+
 ###HACK for GLOBALS
 $DBSERVER=DBSERVER;
   $DB=DB;



More information about the Mapbender_commits mailing list