Browse Source

Fix trailing whitespace

Greg Karékinian 10 years ago
parent
commit
894808b50c

+ 153
- 153
roles/mailserver/files/etc_solr_conf_solrconfig.xml View File

16
  limitations under the License.
16
  limitations under the License.
17
 -->
17
 -->
18
 
18
 
19
-<!-- 
19
+<!--
20
      For more details about configurations options that may appear in
20
      For more details about configurations options that may appear in
21
-     this file, see http://wiki.apache.org/solr/SolrConfigXml. 
21
+     this file, see http://wiki.apache.org/solr/SolrConfigXml.
22
 -->
22
 -->
23
 <config>
23
 <config>
24
   <!-- In all configuration below, a prefix of "solr." for class names
24
   <!-- In all configuration below, a prefix of "solr." for class names
40
          -Dsolr.abortOnConfigurationError=false
40
          -Dsolr.abortOnConfigurationError=false
41
     -->
41
     -->
42
   <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
42
   <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
43
-  
43
+
44
   <!-- Controls what version of Lucene various components of Solr
44
   <!-- Controls what version of Lucene various components of Solr
45
        adhere to.  Generally, you want to use the latest version to
45
        adhere to.  Generally, you want to use the latest version to
46
        get all bug fixes and improvements. It is highly recommended
46
        get all bug fixes and improvements. It is highly recommended
60
        If a "./lib" directory exists in your instanceDir, all files
60
        If a "./lib" directory exists in your instanceDir, all files
61
        found in it are included as if you had used the following
61
        found in it are included as if you had used the following
62
        syntax...
62
        syntax...
63
-       
63
+
64
               <lib dir="./lib" />
64
               <lib dir="./lib" />
65
     -->
65
     -->
66
 
66
 
67
-  <!-- A 'dir' option by itself adds any files found in the directory 
67
+  <!-- A 'dir' option by itself adds any files found in the directory
68
        to the classpath, this is useful for including all jars in a
68
        to the classpath, this is useful for including all jars in a
69
        directory.
69
        directory.
70
     -->
70
     -->
85
 
85
 
86
     <lib dir="../../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar" />
86
     <lib dir="../../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar" />
87
     <lib dir="../../contrib/dataimporthandler/lib/" regex=".*\.jar" />
87
     <lib dir="../../contrib/dataimporthandler/lib/" regex=".*\.jar" />
88
-  
88
+
89
     <lib dir="../../dist/" regex="apache-solr-langid-\d.*\.jar" />
89
     <lib dir="../../dist/" regex="apache-solr-langid-\d.*\.jar" />
90
     <lib dir="../../contrib/langid/lib/" regex=".*\.jar" />
90
     <lib dir="../../contrib/langid/lib/" regex=".*\.jar" />
91
 
91
 
96
   <!-- If a 'dir' option (with or without a regex) is used and nothing
96
   <!-- If a 'dir' option (with or without a regex) is used and nothing
97
        is found that matches, it will be ignored
97
        is found that matches, it will be ignored
98
     -->
98
     -->
99
-  <!-- 
99
+  <!--
100
     <lib dir="/total/crap/dir/ignored" />
100
     <lib dir="/total/crap/dir/ignored" />
101
   -->
101
   -->
102
-  <!-- an exact 'path' can be used instead of a 'dir' to specify a 
103
-       specific file.  This will cause a serious error to be logged if 
102
+  <!-- an exact 'path' can be used instead of a 'dir' to specify a
103
+       specific file.  This will cause a serious error to be logged if
104
        it can't be loaded.
104
        it can't be loaded.
105
     -->
105
     -->
106
   <!--
106
   <!--
107
-     <lib path="../a-jar-that-does-not-exist.jar" /> 
107
+     <lib path="../a-jar-that-does-not-exist.jar" />
108
   -->
108
   -->
109
-  
109
+
110
   <!-- Data Directory
110
   <!-- Data Directory
111
 
111
 
112
        Used to specify an alternate directory to hold all index data
112
        Used to specify an alternate directory to hold all index data
118
 
118
 
119
 
119
 
120
   <!-- The DirectoryFactory to use for indexes.
120
   <!-- The DirectoryFactory to use for indexes.
121
-       
121
+
122
        solr.StandardDirectoryFactory, the default, is filesystem
122
        solr.StandardDirectoryFactory, the default, is filesystem
123
        based and tries to pick the best implementation for the current
123
        based and tries to pick the best implementation for the current
124
        JVM and platform.  One can force a particular implementation
124
        JVM and platform.  One can force a particular implementation
128
        solr.RAMDirectoryFactory is memory based, not
128
        solr.RAMDirectoryFactory is memory based, not
129
        persistent, and doesn't work with replication.
129
        persistent, and doesn't work with replication.
130
     -->
130
     -->
131
-  <directoryFactory name="DirectoryFactory" 
131
+  <directoryFactory name="DirectoryFactory"
132
                     class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
132
                     class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
133
 
133
 
134
   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
134
   <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135
        Index Config - These settings control low-level behavior of indexing
135
        Index Config - These settings control low-level behavior of indexing
136
        Most example settings here show the default value, but are commented
136
        Most example settings here show the default value, but are commented
137
        out, to more easily see where customizations have been made.
137
        out, to more easily see where customizations have been made.
138
-       
138
+
139
        Note: As of Solr 3.6, the <indexDefaults> and <mainIndex> sections
139
        Note: As of Solr 3.6, the <indexDefaults> and <mainIndex> sections
140
-             are deprecated and not shown in the example config. They will 
140
+             are deprecated and not shown in the example config. They will
141
              still work, but will go away for good in 4.0
141
              still work, but will go away for good in 4.0
142
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
142
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
143
   <indexConfig>
143
   <indexConfig>
146
     <!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
146
     <!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
147
     <!-- <writeLockTimeout>1000</writeLockTimeout>  -->
147
     <!-- <writeLockTimeout>1000</writeLockTimeout>  -->
148
 
148
 
149
-    <!-- Expert: Enabling compound file will use less files for the index, 
150
-         using fewer file descriptors on the expense of performance decrease. 
149
+    <!-- Expert: Enabling compound file will use less files for the index,
150
+         using fewer file descriptors on the expense of performance decrease.
151
          Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
151
          Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
152
     <!-- <useCompoundFile>false</useCompoundFile> -->
152
     <!-- <useCompoundFile>false</useCompoundFile> -->
153
 
153
 
161
     <!-- <ramBufferSizeMB>32</ramBufferSizeMB> -->
161
     <!-- <ramBufferSizeMB>32</ramBufferSizeMB> -->
162
     <!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
162
     <!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
163
 
163
 
164
-    <!-- Expert: Merge Policy 
164
+    <!-- Expert: Merge Policy
165
          The Merge Policy in Lucene controls how merging of segments is done.
165
          The Merge Policy in Lucene controls how merging of segments is done.
166
          The default since Solr/Lucene 3.3 is TieredMergePolicy.
166
          The default since Solr/Lucene 3.3 is TieredMergePolicy.
167
          The default since Lucene 2.3 was the LogByteSizeMergePolicy,
167
          The default since Lucene 2.3 was the LogByteSizeMergePolicy,
173
           <int name="segmentsPerTier">10</int>
173
           <int name="segmentsPerTier">10</int>
174
         </mergePolicy>
174
         </mergePolicy>
175
       -->
175
       -->
176
-       
176
+
177
     <!-- Merge Factor
177
     <!-- Merge Factor
178
          The merge factor controls how many segments will get merged at a time.
178
          The merge factor controls how many segments will get merged at a time.
179
          For TieredMergePolicy, mergeFactor is a convenience parameter which
179
          For TieredMergePolicy, mergeFactor is a convenience parameter which
182
          will be allowed before they are merged into one.
182
          will be allowed before they are merged into one.
183
          Default is 10 for both merge policies.
183
          Default is 10 for both merge policies.
184
       -->
184
       -->
185
-    <!-- 
185
+    <!--
186
     <mergeFactor>10</mergeFactor>
186
     <mergeFactor>10</mergeFactor>
187
       -->
187
       -->
188
 
188
 
192
          can perform merges in the background using separate threads.
192
          can perform merges in the background using separate threads.
193
          The SerialMergeScheduler (Lucene 2.2 default) does not.
193
          The SerialMergeScheduler (Lucene 2.2 default) does not.
194
      -->
194
      -->
195
-    <!-- 
195
+    <!--
196
        <mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
196
        <mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
197
        -->
197
        -->
198
 
198
 
199
-    <!-- LockFactory 
199
+    <!-- LockFactory
200
 
200
 
201
          This option specifies which Lucene LockFactory implementation
201
          This option specifies which Lucene LockFactory implementation
202
          to use.
202
          to use.
203
-      
203
+
204
          single = SingleInstanceLockFactory - suggested for a
204
          single = SingleInstanceLockFactory - suggested for a
205
                   read-only index or when there is no possibility of
205
                   read-only index or when there is no possibility of
206
                   another process trying to modify the index.
206
                   another process trying to modify the index.
229
     <!--
229
     <!--
230
     <unlockOnStartup>false</unlockOnStartup>
230
     <unlockOnStartup>false</unlockOnStartup>
231
       -->
231
       -->
232
-    
232
+
233
     <!-- Expert: Controls how often Lucene loads terms into memory
233
     <!-- Expert: Controls how often Lucene loads terms into memory
234
          Default is 128 and is likely good for most everyone.
234
          Default is 128 and is likely good for most everyone.
235
       -->
235
       -->
238
     <!-- If true, IndexReaders will be reopened (often more efficient)
238
     <!-- If true, IndexReaders will be reopened (often more efficient)
239
          instead of closed and then opened. Default: true
239
          instead of closed and then opened. Default: true
240
       -->
240
       -->
241
-    <!-- 
241
+    <!--
242
     <reopenReaders>true</reopenReaders>
242
     <reopenReaders>true</reopenReaders>
243
       -->
243
       -->
244
 
244
 
252
          The default Solr IndexDeletionPolicy implementation supports
252
          The default Solr IndexDeletionPolicy implementation supports
253
          deleting index commit points on number of commits, age of
253
          deleting index commit points on number of commits, age of
254
          commit point and optimized status.
254
          commit point and optimized status.
255
-         
255
+
256
          The latest commit point should always be preserved regardless
256
          The latest commit point should always be preserved regardless
257
          of the criteria.
257
          of the criteria.
258
     -->
258
     -->
259
-    <!-- 
259
+    <!--
260
     <deletionPolicy class="solr.SolrDeletionPolicy">
260
     <deletionPolicy class="solr.SolrDeletionPolicy">
261
     -->
261
     -->
262
       <!-- The number of commit points to be kept -->
262
       <!-- The number of commit points to be kept -->
271
          <str name="maxCommitAge">30MINUTES</str>
271
          <str name="maxCommitAge">30MINUTES</str>
272
          <str name="maxCommitAge">1DAY</str>
272
          <str name="maxCommitAge">1DAY</str>
273
       -->
273
       -->
274
-    <!-- 
274
+    <!--
275
     </deletionPolicy>
275
     </deletionPolicy>
276
     -->
276
     -->
277
 
277
 
278
     <!-- Lucene Infostream
278
     <!-- Lucene Infostream
279
-       
279
+
280
          To aid in advanced debugging, Lucene provides an "InfoStream"
280
          To aid in advanced debugging, Lucene provides an "InfoStream"
281
          of detailed information when indexing.
281
          of detailed information when indexing.
282
 
282
 
283
          Setting The value to true will instruct the underlying Lucene
283
          Setting The value to true will instruct the underlying Lucene
284
          IndexWriter to write its debugging info the specified file
284
          IndexWriter to write its debugging info the specified file
285
       -->
285
       -->
286
-     <!-- <infoStream file="INFOSTREAM.txt">false</infoStream> --> 
286
+     <!-- <infoStream file="INFOSTREAM.txt">false</infoStream> -->
287
   </indexConfig>
287
   </indexConfig>
288
 
288
 
289
 
289
 
290
   <!-- JMX
290
   <!-- JMX
291
-       
291
+
292
        This example enables JMX if and only if an existing MBeanServer
292
        This example enables JMX if and only if an existing MBeanServer
293
        is found, use this if you want to configure JMX through JVM
293
        is found, use this if you want to configure JMX through JVM
294
        parameters. Remove this to disable exposing Solr configuration
294
        parameters. Remove this to disable exposing Solr configuration
298
     -->
298
     -->
299
   <jmx />
299
   <jmx />
300
   <!-- If you want to connect to a particular server, specify the
300
   <!-- If you want to connect to a particular server, specify the
301
-       agentId 
301
+       agentId
302
     -->
302
     -->
303
   <!-- <jmx agentId="myAgent" /> -->
303
   <!-- <jmx agentId="myAgent" /> -->
304
   <!-- If you want to start a new MBeanServer, specify the serviceUrl -->
304
   <!-- If you want to start a new MBeanServer, specify the serviceUrl -->
312
 
312
 
313
          Perform a <commit/> automatically under certain conditions.
313
          Perform a <commit/> automatically under certain conditions.
314
          Instead of enabling autoCommit, consider using "commitWithin"
314
          Instead of enabling autoCommit, consider using "commitWithin"
315
-         when adding documents. 
315
+         when adding documents.
316
 
316
 
317
          http://wiki.apache.org/solr/UpdateXmlMessages
317
          http://wiki.apache.org/solr/UpdateXmlMessages
318
 
318
 
321
 
321
 
322
          maxTime - Maximum amount of time that is allowed to pass
322
          maxTime - Maximum amount of time that is allowed to pass
323
                    since a document was added before automaticly
323
                    since a document was added before automaticly
324
-                   triggering a new commit. 
324
+                   triggering a new commit.
325
       -->
325
       -->
326
     <!--
326
     <!--
327
-       <autoCommit> 
327
+       <autoCommit>
328
          <maxDocs>10000</maxDocs>
328
          <maxDocs>10000</maxDocs>
329
-         <maxTime>1000</maxTime> 
329
+         <maxTime>1000</maxTime>
330
        </autoCommit>
330
        </autoCommit>
331
       -->
331
       -->
332
 
332
 
333
     <!-- Update Related Event Listeners
333
     <!-- Update Related Event Listeners
334
-         
334
+
335
          Various IndexWriter related events can trigger Listeners to
335
          Various IndexWriter related events can trigger Listeners to
336
          take actions.
336
          take actions.
337
 
337
 
340
       -->
340
       -->
341
     <!-- The RunExecutableListener executes an external command from a
341
     <!-- The RunExecutableListener executes an external command from a
342
          hook such as postCommit or postOptimize.
342
          hook such as postCommit or postOptimize.
343
-         
343
+
344
          exe - the name of the executable to run
344
          exe - the name of the executable to run
345
          dir - dir to use as the current working directory. (default=".")
345
          dir - dir to use as the current working directory. (default=".")
346
-         wait - the calling thread waits until the executable returns. 
346
+         wait - the calling thread waits until the executable returns.
347
                 (default="true")
347
                 (default="true")
348
          args - the arguments to pass to the program.  (default is none)
348
          args - the arguments to pass to the program.  (default is none)
349
          env - environment variables to set.  (default is none)
349
          env - environment variables to set.  (default is none)
362
        </listener>
362
        </listener>
363
       -->
363
       -->
364
   </updateHandler>
364
   </updateHandler>
365
-  
365
+
366
   <!-- IndexReaderFactory
366
   <!-- IndexReaderFactory
367
 
367
 
368
        Use the following format to specify a custom IndexReaderFactory,
368
        Use the following format to specify a custom IndexReaderFactory,
394
        be specified.
394
        be specified.
395
     -->
395
     -->
396
   <!--
396
   <!--
397
-     <indexReaderFactory name="IndexReaderFactory" 
397
+     <indexReaderFactory name="IndexReaderFactory"
398
                          class="solr.StandardIndexReaderFactory">
398
                          class="solr.StandardIndexReaderFactory">
399
        <int name="setTermIndexDivisor">12</int>
399
        <int name="setTermIndexDivisor">12</int>
400
      </indexReaderFactory >
400
      </indexReaderFactory >
410
          is thrown if exceeded.
410
          is thrown if exceeded.
411
 
411
 
412
          ** WARNING **
412
          ** WARNING **
413
-         
413
+
414
          This option actually modifies a global Lucene property that
414
          This option actually modifies a global Lucene property that
415
          will affect all SolrCores.  If multiple solrconfig.xml files
415
          will affect all SolrCores.  If multiple solrconfig.xml files
416
          disagree on this property, the value at any given moment will
416
          disagree on this property, the value at any given moment will
417
          be based on the last SolrCore to be initialized.
417
          be based on the last SolrCore to be initialized.
418
-         
418
+
419
       -->
419
       -->
420
     <maxBooleanClauses>1024</maxBooleanClauses>
420
     <maxBooleanClauses>1024</maxBooleanClauses>
421
 
421
 
424
 
424
 
425
          There are two implementations of cache available for Solr,
425
          There are two implementations of cache available for Solr,
426
          LRUCache, based on a synchronized LinkedHashMap, and
426
          LRUCache, based on a synchronized LinkedHashMap, and
427
-         FastLRUCache, based on a ConcurrentHashMap.  
427
+         FastLRUCache, based on a ConcurrentHashMap.
428
 
428
 
429
          FastLRUCache has faster gets and slower puts in single
429
          FastLRUCache has faster gets and slower puts in single
430
          threaded operation and thus is generally faster than LRUCache
430
          threaded operation and thus is generally faster than LRUCache
449
            initialSize - the initial capacity (number of entries) of
449
            initialSize - the initial capacity (number of entries) of
450
                the cache.  (see java.util.HashMap)
450
                the cache.  (see java.util.HashMap)
451
            autowarmCount - the number of entries to prepopulate from
451
            autowarmCount - the number of entries to prepopulate from
452
-               and old cache.  
452
+               and old cache.
453
       -->
453
       -->
454
     <filterCache class="solr.FastLRUCache"
454
     <filterCache class="solr.FastLRUCache"
455
                  size="512"
455
                  size="512"
457
                  autowarmCount="0"/>
457
                  autowarmCount="0"/>
458
 
458
 
459
     <!-- Query Result Cache
459
     <!-- Query Result Cache
460
-         
460
+
461
          Caches results of searches - ordered lists of document ids
461
          Caches results of searches - ordered lists of document ids
462
-         (DocList) based on a query, a sort, and the range of documents 
463
-         requested.  
462
+         (DocList) based on a query, a sort, and the range of documents
463
+         requested.
464
       -->
464
       -->
465
     <queryResultCache class="solr.LRUCache"
465
     <queryResultCache class="solr.LRUCache"
466
                      size="512"
466
                      size="512"
467
                      initialSize="512"
467
                      initialSize="512"
468
                      autowarmCount="0"/>
468
                      autowarmCount="0"/>
469
-   
469
+
470
     <!-- Document Cache
470
     <!-- Document Cache
471
 
471
 
472
          Caches Lucene Document objects (the stored fields for each
472
          Caches Lucene Document objects (the stored fields for each
473
          document).  Since Lucene internal document ids are transient,
473
          document).  Since Lucene internal document ids are transient,
474
-         this cache will not be autowarmed.  
474
+         this cache will not be autowarmed.
475
       -->
475
       -->
476
     <documentCache class="solr.LRUCache"
476
     <documentCache class="solr.LRUCache"
477
                    size="512"
477
                    size="512"
478
                    initialSize="512"
478
                    initialSize="512"
479
                    autowarmCount="0"/>
479
                    autowarmCount="0"/>
480
-    
480
+
481
     <!-- Field Value Cache
481
     <!-- Field Value Cache
482
-         
482
+
483
          Cache used to hold field values that are quickly accessible
483
          Cache used to hold field values that are quickly accessible
484
          by document id.  The fieldValueCache is created by default
484
          by document id.  The fieldValueCache is created by default
485
          even if not configured here.
485
          even if not configured here.
497
          name through SolrIndexSearcher.getCache(),cacheLookup(), and
497
          name through SolrIndexSearcher.getCache(),cacheLookup(), and
498
          cacheInsert().  The purpose is to enable easy caching of
498
          cacheInsert().  The purpose is to enable easy caching of
499
          user/application level data.  The regenerator argument should
499
          user/application level data.  The regenerator argument should
500
-         be specified as an implementation of solr.CacheRegenerator 
501
-         if autowarming is desired.  
500
+         be specified as an implementation of solr.CacheRegenerator
501
+         if autowarming is desired.
502
       -->
502
       -->
503
     <!--
503
     <!--
504
        <cache name="myUserCache"
504
        <cache name="myUserCache"
543
         An optimization for use with the queryResultCache.  When a search
543
         An optimization for use with the queryResultCache.  When a search
544
         is requested, a superset of the requested number of document ids
544
         is requested, a superset of the requested number of document ids
545
         are collected.  For example, if a search for a particular query
545
         are collected.  For example, if a search for a particular query
546
-        requests matching documents 10 through 19, and queryWindowSize 
547
-        is 50, then documents 0 through 49 will be collected and cached.  
548
-        Any further requests in that range can be satisfied via the cache.  
546
+        requests matching documents 10 through 19, and queryWindowSize
547
+        is 50, then documents 0 through 49 will be collected and cached.
548
+        Any further requests in that range can be satisfied via the cache.
549
      -->
549
      -->
550
    <queryResultWindowSize>20</queryResultWindowSize>
550
    <queryResultWindowSize>20</queryResultWindowSize>
551
 
551
 
552
    <!-- Maximum number of documents to cache for any entry in the
552
    <!-- Maximum number of documents to cache for any entry in the
553
-        queryResultCache. 
553
+        queryResultCache.
554
      -->
554
      -->
555
    <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
555
    <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
556
 
556
 
568
         prepared but there is no current registered searcher to handle
568
         prepared but there is no current registered searcher to handle
569
         requests or to gain autowarming data from.
569
         requests or to gain autowarming data from.
570
 
570
 
571
-        
571
+
572
      -->
572
      -->
573
     <!-- QuerySenderListener takes an array of NamedList and executes a
573
     <!-- QuerySenderListener takes an array of NamedList and executes a
574
-         local query request for each NamedList in sequence. 
574
+         local query request for each NamedList in sequence.
575
       -->
575
       -->
576
     <listener event="newSearcher" class="solr.QuerySenderListener">
576
     <listener event="newSearcher" class="solr.QuerySenderListener">
577
       <arr name="queries">
577
       <arr name="queries">
599
     <useColdSearcher>false</useColdSearcher>
599
     <useColdSearcher>false</useColdSearcher>
600
 
600
 
601
     <!-- Max Warming Searchers
601
     <!-- Max Warming Searchers
602
-         
602
+
603
          Maximum number of searchers that may be warming in the
603
          Maximum number of searchers that may be warming in the
604
          background concurrently.  An error is returned if this limit
604
          background concurrently.  An error is returned if this limit
605
          is exceeded.
605
          is exceeded.
636
 
636
 
637
          multipartUploadLimitInKB - specifies the max size of
637
          multipartUploadLimitInKB - specifies the max size of
638
          Multipart File Uploads that Solr will allow in a Request.
638
          Multipart File Uploads that Solr will allow in a Request.
639
-         
639
+
640
          *** WARNING ***
640
          *** WARNING ***
641
          The settings below authorize Solr to fetch remote files, You
641
          The settings below authorize Solr to fetch remote files, You
642
          should make sure your system has some authentication before
642
          should make sure your system has some authentication before
643
          using enableRemoteStreaming="true"
643
          using enableRemoteStreaming="true"
644
 
644
 
645
-      --> 
646
-    <requestParsers enableRemoteStreaming="true" 
645
+      -->
646
+    <requestParsers enableRemoteStreaming="true"
647
                     multipartUploadLimitInKB="2048000" />
647
                     multipartUploadLimitInKB="2048000" />
648
 
648
 
649
     <!-- HTTP Caching
649
     <!-- HTTP Caching
657
     <!-- If you include a <cacheControl> directive, it will be used to
657
     <!-- If you include a <cacheControl> directive, it will be used to
658
          generate a Cache-Control header (as well as an Expires header
658
          generate a Cache-Control header (as well as an Expires header
659
          if the value contains "max-age=")
659
          if the value contains "max-age=")
660
-         
660
+
661
          By default, no Cache-Control header is generated.
661
          By default, no Cache-Control header is generated.
662
-         
662
+
663
          You can use the <cacheControl> option even if you have set
663
          You can use the <cacheControl> option even if you have set
664
          never304="true"
664
          never304="true"
665
       -->
665
       -->
666
     <!--
666
     <!--
667
        <httpCaching never304="true" >
667
        <httpCaching never304="true" >
668
-         <cacheControl>max-age=30, public</cacheControl> 
668
+         <cacheControl>max-age=30, public</cacheControl>
669
        </httpCaching>
669
        </httpCaching>
670
       -->
670
       -->
671
     <!-- To enable Solr to respond with automatically generated HTTP
671
     <!-- To enable Solr to respond with automatically generated HTTP
672
          Caching headers, and to response to Cache Validation requests
672
          Caching headers, and to response to Cache Validation requests
673
          correctly, set the value of never304="false"
673
          correctly, set the value of never304="false"
674
-         
674
+
675
          This will cause Solr to generate Last-Modified and ETag
675
          This will cause Solr to generate Last-Modified and ETag
676
          headers based on the properties of the Index.
676
          headers based on the properties of the Index.
677
 
677
 
696
     <!--
696
     <!--
697
        <httpCaching lastModifiedFrom="openTime"
697
        <httpCaching lastModifiedFrom="openTime"
698
                     etagSeed="Solr">
698
                     etagSeed="Solr">
699
-         <cacheControl>max-age=30, public</cacheControl> 
699
+         <cacheControl>max-age=30, public</cacheControl>
700
        </httpCaching>
700
        </httpCaching>
701
       -->
701
       -->
702
   </requestDispatcher>
702
   </requestDispatcher>
703
 
703
 
704
-  <!-- Request Handlers 
704
+  <!-- Request Handlers
705
 
705
 
706
        http://wiki.apache.org/solr/SolrRequestHandler
706
        http://wiki.apache.org/solr/SolrRequestHandler
707
 
707
 
857
      -->
857
      -->
858
   </requestHandler>
858
   </requestHandler>
859
 
859
 
860
-  <!-- XML Update Request Handler.  
861
-       
860
+  <!-- XML Update Request Handler.
861
+
862
        http://wiki.apache.org/solr/UpdateXmlMessages
862
        http://wiki.apache.org/solr/UpdateXmlMessages
863
 
863
 
864
        The canonical Request Handler for Modifying the Index through
864
        The canonical Request Handler for Modifying the Index through
868
        type header if posted in the body. For example, curl now
868
        type header if posted in the body. For example, curl now
869
        requires: -H 'Content-type:text/xml; charset=utf-8'
869
        requires: -H 'Content-type:text/xml; charset=utf-8'
870
     -->
870
     -->
871
-  <requestHandler name="/update" 
871
+  <requestHandler name="/update"
872
                   class="solr.XmlUpdateRequestHandler">
872
                   class="solr.XmlUpdateRequestHandler">
873
-    <!-- See below for information on defining 
874
-         updateRequestProcessorChains that can be used by name 
873
+    <!-- See below for information on defining
874
+         updateRequestProcessorChains that can be used by name
875
          on each Update Request
875
          on each Update Request
876
       -->
876
       -->
877
     <!--
877
     <!--
883
   <!-- Binary Update Request Handler
883
   <!-- Binary Update Request Handler
884
        http://wiki.apache.org/solr/javabin
884
        http://wiki.apache.org/solr/javabin
885
     -->
885
     -->
886
-  <requestHandler name="/update/javabin" 
886
+  <requestHandler name="/update/javabin"
887
                   class="solr.BinaryUpdateRequestHandler" />
887
                   class="solr.BinaryUpdateRequestHandler" />
888
 
888
 
889
   <!-- CSV Update Request Handler
889
   <!-- CSV Update Request Handler
890
        http://wiki.apache.org/solr/UpdateCSV
890
        http://wiki.apache.org/solr/UpdateCSV
891
     -->
891
     -->
892
-  <requestHandler name="/update/csv" 
893
-                  class="solr.CSVRequestHandler" 
892
+  <requestHandler name="/update/csv"
893
+                  class="solr.CSVRequestHandler"
894
                   startup="lazy" />
894
                   startup="lazy" />
895
 
895
 
896
   <!-- JSON Update Request Handler
896
   <!-- JSON Update Request Handler
897
        http://wiki.apache.org/solr/UpdateJSON
897
        http://wiki.apache.org/solr/UpdateJSON
898
     -->
898
     -->
899
-  <requestHandler name="/update/json" 
900
-                  class="solr.JsonUpdateRequestHandler" 
899
+  <requestHandler name="/update/json"
900
+                  class="solr.JsonUpdateRequestHandler"
901
                   startup="lazy" />
901
                   startup="lazy" />
902
 
902
 
903
   <!-- Solr Cell Update Request Handler
903
   <!-- Solr Cell Update Request Handler
904
 
904
 
905
-       http://wiki.apache.org/solr/ExtractingRequestHandler 
905
+       http://wiki.apache.org/solr/ExtractingRequestHandler
906
 
906
 
907
     -->
907
     -->
908
-  <requestHandler name="/update/extract" 
908
+  <requestHandler name="/update/extract"
909
                   startup="lazy"
909
                   startup="lazy"
910
                   class="solr.extraction.ExtractingRequestHandler" >
910
                   class="solr.extraction.ExtractingRequestHandler" >
911
     <lst name="defaults">
911
     <lst name="defaults">
947
            field value analysis will be marked as "matched" for every
947
            field value analysis will be marked as "matched" for every
948
            token that is produces by the query analysis
948
            token that is produces by the query analysis
949
    -->
949
    -->
950
-  <requestHandler name="/analysis/field" 
950
+  <requestHandler name="/analysis/field"
951
                   startup="lazy"
951
                   startup="lazy"
952
                   class="solr.FieldAnalysisRequestHandler" />
952
                   class="solr.FieldAnalysisRequestHandler" />
953
 
953
 
980
     request parameter that holds the query text to be analyzed. It
980
     request parameter that holds the query text to be analyzed. It
981
     also supports the "analysis.showmatch" parameter which when set to
981
     also supports the "analysis.showmatch" parameter which when set to
982
     true, all field tokens that match the query tokens will be marked
982
     true, all field tokens that match the query tokens will be marked
983
-    as a "match". 
983
+    as a "match".
984
   -->
984
   -->
985
-  <requestHandler name="/analysis/document" 
986
-                  class="solr.DocumentAnalysisRequestHandler" 
985
+  <requestHandler name="/analysis/document"
986
+                  class="solr.DocumentAnalysisRequestHandler"
987
                   startup="lazy" />
987
                   startup="lazy" />
988
 
988
 
989
   <!-- Admin Handlers
989
   <!-- Admin Handlers
990
 
990
 
991
        Admin Handlers - This will register all the standard admin
991
        Admin Handlers - This will register all the standard admin
992
-       RequestHandlers.  
992
+       RequestHandlers.
993
     -->
993
     -->
994
-  <requestHandler name="/admin/" 
994
+  <requestHandler name="/admin/"
995
                   class="solr.admin.AdminHandlers" />
995
                   class="solr.admin.AdminHandlers" />
996
   <!-- This single handler is equivalent to the following... -->
996
   <!-- This single handler is equivalent to the following... -->
997
   <!--
997
   <!--
1003
      <requestHandler name="/admin/file"       class="solr.admin.ShowFileRequestHandler" >
1003
      <requestHandler name="/admin/file"       class="solr.admin.ShowFileRequestHandler" >
1004
     -->
1004
     -->
1005
   <!-- If you wish to hide files under ${solr.home}/conf, explicitly
1005
   <!-- If you wish to hide files under ${solr.home}/conf, explicitly
1006
-       register the ShowFileRequestHandler using: 
1006
+       register the ShowFileRequestHandler using:
1007
     -->
1007
     -->
1008
   <!--
1008
   <!--
1009
-     <requestHandler name="/admin/file" 
1009
+     <requestHandler name="/admin/file"
1010
                      class="solr.admin.ShowFileRequestHandler" >
1010
                      class="solr.admin.ShowFileRequestHandler" >
1011
        <lst name="invariants">
1011
        <lst name="invariants">
1012
-         <str name="hidden">synonyms.txt</str> 
1013
-         <str name="hidden">anotherfile.txt</str> 
1012
+         <str name="hidden">synonyms.txt</str>
1013
+         <str name="hidden">anotherfile.txt</str>
1014
        </lst>
1014
        </lst>
1015
      </requestHandler>
1015
      </requestHandler>
1016
     -->
1016
     -->
1028
   <!-- Echo the request contents back to the client -->
1028
   <!-- Echo the request contents back to the client -->
1029
   <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
1029
   <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
1030
     <lst name="defaults">
1030
     <lst name="defaults">
1031
-     <str name="echoParams">explicit</str> 
1031
+     <str name="echoParams">explicit</str>
1032
      <str name="echoHandler">true</str>
1032
      <str name="echoHandler">true</str>
1033
     </lst>
1033
     </lst>
1034
   </requestHandler>
1034
   </requestHandler>
1038
        The SolrReplicationHandler supports replicating indexes from a
1038
        The SolrReplicationHandler supports replicating indexes from a
1039
        "master" used for indexing and "slaves" used for queries.
1039
        "master" used for indexing and "slaves" used for queries.
1040
 
1040
 
1041
-       http://wiki.apache.org/solr/SolrReplication 
1041
+       http://wiki.apache.org/solr/SolrReplication
1042
 
1042
 
1043
        In the example below, remove the <lst name="master"> section if
1043
        In the example below, remove the <lst name="master"> section if
1044
        this is just a slave and remove  the <lst name="slave"> section
1044
        this is just a slave and remove  the <lst name="slave"> section
1060
 
1060
 
1061
   <!-- Search Components
1061
   <!-- Search Components
1062
 
1062
 
1063
-       Search components are registered to SolrCore and used by 
1063
+       Search components are registered to SolrCore and used by
1064
        instances of SearchHandler (which can access them by name)
1064
        instances of SearchHandler (which can access them by name)
1065
-       
1065
+
1066
        By default, the following components are available:
1066
        By default, the following components are available:
1067
-       
1067
+
1068
        <searchComponent name="query"     class="solr.QueryComponent" />
1068
        <searchComponent name="query"     class="solr.QueryComponent" />
1069
        <searchComponent name="facet"     class="solr.FacetComponent" />
1069
        <searchComponent name="facet"     class="solr.FacetComponent" />
1070
        <searchComponent name="mlt"       class="solr.MoreLikeThisComponent" />
1070
        <searchComponent name="mlt"       class="solr.MoreLikeThisComponent" />
1071
        <searchComponent name="highlight" class="solr.HighlightComponent" />
1071
        <searchComponent name="highlight" class="solr.HighlightComponent" />
1072
        <searchComponent name="stats"     class="solr.StatsComponent" />
1072
        <searchComponent name="stats"     class="solr.StatsComponent" />
1073
        <searchComponent name="debug"     class="solr.DebugComponent" />
1073
        <searchComponent name="debug"     class="solr.DebugComponent" />
1074
-   
1074
+
1075
        Default configuration in a requestHandler would look like:
1075
        Default configuration in a requestHandler would look like:
1076
 
1076
 
1077
        <arr name="components">
1077
        <arr name="components">
1083
          <str>debug</str>
1083
          <str>debug</str>
1084
        </arr>
1084
        </arr>
1085
 
1085
 
1086
-       If you register a searchComponent to one of the standard names, 
1086
+       If you register a searchComponent to one of the standard names,
1087
        that will be used instead of the default.
1087
        that will be used instead of the default.
1088
 
1088
 
1089
        To insert components before or after the 'standard' components, use:
1089
        To insert components before or after the 'standard' components, use:
1090
-    
1090
+
1091
        <arr name="first-components">
1091
        <arr name="first-components">
1092
          <str>myFirstComponentName</str>
1092
          <str>myFirstComponentName</str>
1093
        </arr>
1093
        </arr>
1094
-    
1094
+
1095
        <arr name="last-components">
1095
        <arr name="last-components">
1096
          <str>myLastComponentName</str>
1096
          <str>myLastComponentName</str>
1097
        </arr>
1097
        </arr>
1098
 
1098
 
1099
        NOTE: The component registered with the name "debug" will
1099
        NOTE: The component registered with the name "debug" will
1100
-       always be executed after the "last-components" 
1101
-       
1100
+       always be executed after the "last-components"
1101
+
1102
      -->
1102
      -->
1103
 
1103
 
1104
    <!-- Spell Check
1104
    <!-- Spell Check
1105
 
1105
 
1106
         The spell check component can return a list of alternative spelling
1106
         The spell check component can return a list of alternative spelling
1107
-        suggestions.  
1107
+        suggestions.
1108
 
1108
 
1109
         http://wiki.apache.org/solr/SpellCheckComponent
1109
         http://wiki.apache.org/solr/SpellCheckComponent
1110
      -->
1110
      -->
1123
       <str name="name">default</str>
1123
       <str name="name">default</str>
1124
       <str name="field">name</str>
1124
       <str name="field">name</str>
1125
       <str name="spellcheckIndexDir">spellchecker</str>
1125
       <str name="spellcheckIndexDir">spellchecker</str>
1126
-      <!-- uncomment this to require terms to occur in 1% of the documents 
1126
+      <!-- uncomment this to require terms to occur in 1% of the documents
1127
            in order to be included in the dictionary
1127
            in order to be included in the dictionary
1128
         -->
1128
         -->
1129
       <!--
1129
       <!--
1143
        </lst>
1143
        </lst>
1144
      -->
1144
      -->
1145
 
1145
 
1146
-    <!-- a spellchecker that use an alternate comparator 
1146
+    <!-- a spellchecker that use an alternate comparator
1147
 
1147
 
1148
          comparatorClass be one of:
1148
          comparatorClass be one of:
1149
           1. score (default)
1149
           1. score (default)
1171
       -->
1171
       -->
1172
   </searchComponent>
1172
   </searchComponent>
1173
 
1173
 
1174
-  <!-- A request handler for demonstrating the spellcheck component.  
1174
+  <!-- A request handler for demonstrating the spellcheck component.
1175
 
1175
 
1176
        NOTE: This is purely as an example.  The whole purpose of the
1176
        NOTE: This is purely as an example.  The whole purpose of the
1177
        SpellCheckComponent is to hook it into the request handler that
1177
        SpellCheckComponent is to hook it into the request handler that
1180
 
1180
 
1181
        IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
1181
        IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
1182
        NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
1182
        NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
1183
-       
1183
+
1184
        See http://wiki.apache.org/solr/SpellCheckComponent for details
1184
        See http://wiki.apache.org/solr/SpellCheckComponent for details
1185
        on the request parameters.
1185
        on the request parameters.
1186
     -->
1186
     -->
1206
 
1206
 
1207
        This is purely as an example.
1207
        This is purely as an example.
1208
 
1208
 
1209
-       In reality you will likely want to add the component to your 
1210
-       already specified request handlers. 
1209
+       In reality you will likely want to add the component to your
1210
+       already specified request handlers.
1211
     -->
1211
     -->
1212
   <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
1212
   <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
1213
     <lst name="defaults">
1213
     <lst name="defaults">
1230
 
1230
 
1231
           java -Dsolr.clustering.enabled=true -jar start.jar
1231
           java -Dsolr.clustering.enabled=true -jar start.jar
1232
     -->
1232
     -->
1233
-  <searchComponent name="clustering" 
1233
+  <searchComponent name="clustering"
1234
                    enable="${solr.clustering.enabled:false}"
1234
                    enable="${solr.clustering.enabled:false}"
1235
                    class="solr.clustering.ClusteringComponent" >
1235
                    class="solr.clustering.ClusteringComponent" >
1236
     <!-- Declare an engine -->
1236
     <!-- Declare an engine -->
1238
       <!-- The name, only one can be named "default" -->
1238
       <!-- The name, only one can be named "default" -->
1239
       <str name="name">default</str>
1239
       <str name="name">default</str>
1240
 
1240
 
1241
-      <!-- Class name of Carrot2 clustering algorithm. 
1242
-           
1241
+      <!-- Class name of Carrot2 clustering algorithm.
1242
+
1243
            Currently available algorithms are:
1243
            Currently available algorithms are:
1244
-           
1244
+
1245
            * org.carrot2.clustering.lingo.LingoClusteringAlgorithm
1245
            * org.carrot2.clustering.lingo.LingoClusteringAlgorithm
1246
            * org.carrot2.clustering.stc.STCClusteringAlgorithm
1246
            * org.carrot2.clustering.stc.STCClusteringAlgorithm
1247
            * org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
1247
            * org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
1248
-           
1248
+
1249
            See http://project.carrot2.org/algorithms.html for the
1249
            See http://project.carrot2.org/algorithms.html for the
1250
            algorithm's characteristics.
1250
            algorithm's characteristics.
1251
         -->
1251
         -->
1261
            name and attribute value as parameter value.
1261
            name and attribute value as parameter value.
1262
         -->
1262
         -->
1263
       <str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str>
1263
       <str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str>
1264
-      
1264
+
1265
       <!-- Location of Carrot2 lexical resources.
1265
       <!-- Location of Carrot2 lexical resources.
1266
 
1266
 
1267
            A directory from which to load Carrot2-specific stop words
1267
            A directory from which to load Carrot2-specific stop words
1276
       <str name="carrot.lexicalResourcesDir">clustering/carrot2</str>
1276
       <str name="carrot.lexicalResourcesDir">clustering/carrot2</str>
1277
 
1277
 
1278
       <!-- The language to assume for the documents.
1278
       <!-- The language to assume for the documents.
1279
-           
1279
+
1280
            For a list of allowed values, see:
1280
            For a list of allowed values, see:
1281
            http://download.carrot2.org/stable/manual/#section.attribute.lingo.MultilingualClustering.defaultLanguage
1281
            http://download.carrot2.org/stable/manual/#section.attribute.lingo.MultilingualClustering.defaultLanguage
1282
        -->
1282
        -->
1292
 
1292
 
1293
        This is purely as an example.
1293
        This is purely as an example.
1294
 
1294
 
1295
-       In reality you will likely want to add the component to your 
1296
-       already specified request handlers. 
1295
+       In reality you will likely want to add the component to your
1296
+       already specified request handlers.
1297
     -->
1297
     -->
1298
   <requestHandler name="/clustering"
1298
   <requestHandler name="/clustering"
1299
                   startup="lazy"
1299
                   startup="lazy"
1314
        <!--<int name="carrot.numDescriptions">5</int>-->
1314
        <!--<int name="carrot.numDescriptions">5</int>-->
1315
        <!-- produce sub clusters -->
1315
        <!-- produce sub clusters -->
1316
        <bool name="carrot.outputSubClusters">false</bool>
1316
        <bool name="carrot.outputSubClusters">false</bool>
1317
-       
1317
+
1318
        <str name="df">text</str>
1318
        <str name="df">text</str>
1319
        <str name="defType">edismax</str>
1319
        <str name="defType">edismax</str>
1320
        <str name="qf">
1320
        <str name="qf">
1323
        <str name="q.alt">*:*</str>
1323
        <str name="q.alt">*:*</str>
1324
        <str name="rows">10</str>
1324
        <str name="rows">10</str>
1325
        <str name="fl">*,score</str>
1325
        <str name="fl">*,score</str>
1326
-    </lst>     
1326
+    </lst>
1327
     <arr name="last-components">
1327
     <arr name="last-components">
1328
       <str>clustering</str>
1328
       <str>clustering</str>
1329
     </arr>
1329
     </arr>
1330
   </requestHandler>
1330
   </requestHandler>
1331
-  
1331
+
1332
   <!-- Terms Component
1332
   <!-- Terms Component
1333
 
1333
 
1334
        http://wiki.apache.org/solr/TermsComponent
1334
        http://wiki.apache.org/solr/TermsComponent
1342
   <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
1342
   <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
1343
      <lst name="defaults">
1343
      <lst name="defaults">
1344
       <bool name="terms">true</bool>
1344
       <bool name="terms">true</bool>
1345
-    </lst>     
1345
+    </lst>
1346
     <arr name="components">
1346
     <arr name="components">
1347
       <str>terms</str>
1347
       <str>terms</str>
1348
     </arr>
1348
     </arr>
1382
     <highlighting>
1382
     <highlighting>
1383
       <!-- Configure the standard fragmenter -->
1383
       <!-- Configure the standard fragmenter -->
1384
       <!-- This could most likely be commented out in the "default" case -->
1384
       <!-- This could most likely be commented out in the "default" case -->
1385
-      <fragmenter name="gap" 
1385
+      <fragmenter name="gap"
1386
                   default="true"
1386
                   default="true"
1387
                   class="solr.highlight.GapFragmenter">
1387
                   class="solr.highlight.GapFragmenter">
1388
         <lst name="defaults">
1388
         <lst name="defaults">
1390
         </lst>
1390
         </lst>
1391
       </fragmenter>
1391
       </fragmenter>
1392
 
1392
 
1393
-      <!-- A regular-expression-based fragmenter 
1394
-           (for sentence extraction) 
1393
+      <!-- A regular-expression-based fragmenter
1394
+           (for sentence extraction)
1395
         -->
1395
         -->
1396
-      <fragmenter name="regex" 
1396
+      <fragmenter name="regex"
1397
                   class="solr.highlight.RegexFragmenter">
1397
                   class="solr.highlight.RegexFragmenter">
1398
         <lst name="defaults">
1398
         <lst name="defaults">
1399
           <!-- slightly smaller fragsizes work better because of slop -->
1399
           <!-- slightly smaller fragsizes work better because of slop -->
1406
       </fragmenter>
1406
       </fragmenter>
1407
 
1407
 
1408
       <!-- Configure the standard formatter -->
1408
       <!-- Configure the standard formatter -->
1409
-      <formatter name="html" 
1409
+      <formatter name="html"
1410
                  default="true"
1410
                  default="true"
1411
                  class="solr.highlight.HtmlFormatter">
1411
                  class="solr.highlight.HtmlFormatter">
1412
         <lst name="defaults">
1412
         <lst name="defaults">
1416
       </formatter>
1416
       </formatter>
1417
 
1417
 
1418
       <!-- Configure the standard encoder -->
1418
       <!-- Configure the standard encoder -->
1419
-      <encoder name="html" 
1419
+      <encoder name="html"
1420
                class="solr.highlight.HtmlEncoder" />
1420
                class="solr.highlight.HtmlEncoder" />
1421
 
1421
 
1422
       <!-- Configure the standard fragListBuilder -->
1422
       <!-- Configure the standard fragListBuilder -->
1423
-      <fragListBuilder name="simple" 
1423
+      <fragListBuilder name="simple"
1424
                        default="true"
1424
                        default="true"
1425
                        class="solr.highlight.SimpleFragListBuilder"/>
1425
                        class="solr.highlight.SimpleFragListBuilder"/>
1426
 
1426
 
1427
       <!-- Configure the single fragListBuilder -->
1427
       <!-- Configure the single fragListBuilder -->
1428
-      <fragListBuilder name="single" 
1428
+      <fragListBuilder name="single"
1429
                        class="solr.highlight.SingleFragListBuilder"/>
1429
                        class="solr.highlight.SingleFragListBuilder"/>
1430
 
1430
 
1431
       <!-- default tag FragmentsBuilder -->
1431
       <!-- default tag FragmentsBuilder -->
1432
-      <fragmentsBuilder name="default" 
1432
+      <fragmentsBuilder name="default"
1433
                         default="true"
1433
                         default="true"
1434
                         class="solr.highlight.ScoreOrderFragmentsBuilder">
1434
                         class="solr.highlight.ScoreOrderFragmentsBuilder">
1435
-        <!-- 
1435
+        <!--
1436
         <lst name="defaults">
1436
         <lst name="defaults">
1437
           <str name="hl.multiValuedSeparatorChar">/</str>
1437
           <str name="hl.multiValuedSeparatorChar">/</str>
1438
         </lst>
1438
         </lst>
1440
       </fragmentsBuilder>
1440
       </fragmentsBuilder>
1441
 
1441
 
1442
       <!-- multi-colored tag FragmentsBuilder -->
1442
       <!-- multi-colored tag FragmentsBuilder -->
1443
-      <fragmentsBuilder name="colored" 
1443
+      <fragmentsBuilder name="colored"
1444
                         class="solr.highlight.ScoreOrderFragmentsBuilder">
1444
                         class="solr.highlight.ScoreOrderFragmentsBuilder">
1445
         <lst name="defaults">
1445
         <lst name="defaults">
1446
           <str name="hl.tag.pre"><![CDATA[
1446
           <str name="hl.tag.pre"><![CDATA[
1452
           <str name="hl.tag.post"><![CDATA[</b>]]></str>
1452
           <str name="hl.tag.post"><![CDATA[</b>]]></str>
1453
         </lst>
1453
         </lst>
1454
       </fragmentsBuilder>
1454
       </fragmentsBuilder>
1455
-      
1456
-      <boundaryScanner name="default" 
1455
+
1456
+      <boundaryScanner name="default"
1457
                        default="true"
1457
                        default="true"
1458
                        class="solr.highlight.SimpleBoundaryScanner">
1458
                        class="solr.highlight.SimpleBoundaryScanner">
1459
         <lst name="defaults">
1459
         <lst name="defaults">
1461
           <str name="hl.bs.chars">.,!? &#9;&#10;&#13;</str>
1461
           <str name="hl.bs.chars">.,!? &#9;&#10;&#13;</str>
1462
         </lst>
1462
         </lst>
1463
       </boundaryScanner>
1463
       </boundaryScanner>
1464
-      
1465
-      <boundaryScanner name="breakIterator" 
1464
+
1465
+      <boundaryScanner name="breakIterator"
1466
                        class="solr.highlight.BreakIteratorBoundaryScanner">
1466
                        class="solr.highlight.BreakIteratorBoundaryScanner">
1467
         <lst name="defaults">
1467
         <lst name="defaults">
1468
           <!-- type should be one of:
1468
           <!-- type should be one of:
1469
-               * CHARACTER 
1469
+               * CHARACTER
1470
                * WORD (default)
1470
                * WORD (default)
1471
                * LINE
1471
                * LINE
1472
-               * SENTENCE 
1472
+               * SENTENCE
1473
             -->
1473
             -->
1474
           <str name="hl.bs.type">WORD</str>
1474
           <str name="hl.bs.type">WORD</str>
1475
-          <!-- language and country are used when constructing Locale 
1476
-               object which will be used when getting instance of 
1477
-               BreakIterator 
1475
+          <!-- language and country are used when constructing Locale
1476
+               object which will be used when getting instance of
1477
+               BreakIterator
1478
             -->
1478
             -->
1479
           <str name="hl.bs.language">en</str>
1479
           <str name="hl.bs.language">en</str>
1480
           <str name="hl.bs.country">US</str>
1480
           <str name="hl.bs.country">US</str>
1491
 
1491
 
1492
        http://wiki.apache.org/solr/UpdateRequestProcessor
1492
        http://wiki.apache.org/solr/UpdateRequestProcessor
1493
 
1493
 
1494
-    --> 
1494
+    -->
1495
   <!-- Deduplication
1495
   <!-- Deduplication
1496
 
1496
 
1497
        An example dedup update processor that creates the "id" field
1497
        An example dedup update processor that creates the "id" field
1498
        on the fly based on the hash code of some other fields.  This
1498
        on the fly based on the hash code of some other fields.  This
1499
        example has overwriteDupes set to false since we are using the
1499
        example has overwriteDupes set to false since we are using the
1500
        id field as the signatureField and Solr will maintain
1500
        id field as the signatureField and Solr will maintain
1501
-       uniqueness based on that anyway.  
1502
-       
1501
+       uniqueness based on that anyway.
1502
+
1503
     -->
1503
     -->
1504
   <!--
1504
   <!--
1505
      <updateRequestProcessorChain name="dedupe">
1505
      <updateRequestProcessorChain name="dedupe">
1535
        <processor class="solr.RunUpdateProcessorFactory" />
1535
        <processor class="solr.RunUpdateProcessorFactory" />
1536
      </updateRequestProcessorChain>
1536
      </updateRequestProcessorChain>
1537
     -->
1537
     -->
1538
- 
1538
+
1539
   <!-- Response Writers
1539
   <!-- Response Writers
1540
 
1540
 
1541
        http://wiki.apache.org/solr/QueryResponseWriter
1541
        http://wiki.apache.org/solr/QueryResponseWriter
1551
        overridden...
1551
        overridden...
1552
     -->
1552
     -->
1553
   <!--
1553
   <!--
1554
-     <queryResponseWriter name="xml" 
1554
+     <queryResponseWriter name="xml"
1555
                           default="true"
1555
                           default="true"
1556
                           class="solr.XMLResponseWriter" />
1556
                           class="solr.XMLResponseWriter" />
1557
      <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
1557
      <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
1569
      -->
1569
      -->
1570
     <str name="content-type">text/plain; charset=UTF-8</str>
1570
     <str name="content-type">text/plain; charset=UTF-8</str>
1571
   </queryResponseWriter>
1571
   </queryResponseWriter>
1572
-  
1572
+
1573
   <!--
1573
   <!--
1574
      Custom response writers can be declared as needed...
1574
      Custom response writers can be declared as needed...
1575
     -->
1575
     -->
1576
     <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" startup="lazy"/>
1576
     <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" startup="lazy"/>
1577
-  
1577
+
1578
 
1578
 
1579
   <!-- XSLT response writer transforms the XML output by any xslt file found
1579
   <!-- XSLT response writer transforms the XML output by any xslt file found
1580
        in Solr's conf/xslt directory.  Changes to xslt files are checked for
1580
        in Solr's conf/xslt directory.  Changes to xslt files are checked for
1581
-       every xsltCacheLifetimeSeconds.  
1581
+       every xsltCacheLifetimeSeconds.
1582
     -->
1582
     -->
1583
   <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
1583
   <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
1584
     <int name="xsltCacheLifetimeSeconds">5</int>
1584
     <int name="xsltCacheLifetimeSeconds">5</int>
1606
     -->
1606
     -->
1607
   <!-- example of registering a custom function parser  -->
1607
   <!-- example of registering a custom function parser  -->
1608
   <!--
1608
   <!--
1609
-     <valueSourceParser name="myfunc" 
1609
+     <valueSourceParser name="myfunc"
1610
                         class="com.mycompany.MyValueSourceParser" />
1610
                         class="com.mycompany.MyValueSourceParser" />
1611
     -->
1611
     -->
1612
 
1612
 
1615
     <defaultQuery>*:*</defaultQuery>
1615
     <defaultQuery>*:*</defaultQuery>
1616
 
1616
 
1617
     <!-- configure a healthcheck file for servers behind a
1617
     <!-- configure a healthcheck file for servers behind a
1618
-         loadbalancer 
1618
+         loadbalancer
1619
       -->
1619
       -->
1620
     <!--
1620
     <!--
1621
        <healthcheck type="file">server-enabled</healthcheck>
1621
        <healthcheck type="file">server-enabled</healthcheck>

+ 15
- 15
roles/mailserver/files/etc_tomcat6_server.xml View File

48
   </GlobalNamingResources>
48
   </GlobalNamingResources>
49
 
49
 
50
   <!-- A "Service" is a collection of one or more "Connectors" that share
50
   <!-- A "Service" is a collection of one or more "Connectors" that share
51
-       a single "Container" Note:  A "Service" is not itself a "Container", 
51
+       a single "Container" Note:  A "Service" is not itself a "Container",
52
        so you may not define subcomponents such as "Valves" at this level.
52
        so you may not define subcomponents such as "Valves" at this level.
53
        Documentation at /docs/config/service.html
53
        Documentation at /docs/config/service.html
54
    -->
54
    -->
55
   <Service name="Catalina">
55
   <Service name="Catalina">
56
-  
56
+
57
     <!--The connectors can use a shared executor, you can define one or more named thread pools-->
57
     <!--The connectors can use a shared executor, you can define one or more named thread pools-->
58
     <!--
58
     <!--
59
-    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 
59
+    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
60
         maxThreads="150" minSpareThreads="4"/>
60
         maxThreads="150" minSpareThreads="4"/>
61
     -->
61
     -->
62
-    
63
-    
62
+
63
+
64
     <!-- A "Connector" represents an endpoint by which requests are received
64
     <!-- A "Connector" represents an endpoint by which requests are received
65
          and responses are returned. Documentation at :
65
          and responses are returned. Documentation at :
66
          Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
66
          Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
68
          APR (HTTP/AJP) Connector: /docs/apr.html
68
          APR (HTTP/AJP) Connector: /docs/apr.html
69
          Define a non-SSL HTTP/1.1 Connector on port 8080
69
          Define a non-SSL HTTP/1.1 Connector on port 8080
70
     -->
70
     -->
71
-    <Connector address="127.0.0.1" port="8080" protocol="HTTP/1.1" 
72
-               connectionTimeout="20000" 
71
+    <Connector address="127.0.0.1" port="8080" protocol="HTTP/1.1"
72
+               connectionTimeout="20000"
73
                URIEncoding="UTF-8"
73
                URIEncoding="UTF-8"
74
                redirectPort="8443" />
74
                redirectPort="8443" />
75
     <!-- A "Connector" using the shared thread pool-->
75
     <!-- A "Connector" using the shared thread pool-->
76
     <!--
76
     <!--
77
     <Connector executor="tomcatThreadPool"
77
     <Connector executor="tomcatThreadPool"
78
-               port="8080" protocol="HTTP/1.1" 
79
-               connectionTimeout="20000" 
78
+               port="8080" protocol="HTTP/1.1"
79
+               connectionTimeout="20000"
80
                redirectPort="8443" />
80
                redirectPort="8443" />
81
-    -->           
81
+    -->
82
     <!-- Define a SSL HTTP/1.1 Connector on port 8443
82
     <!-- Define a SSL HTTP/1.1 Connector on port 8443
83
-         This connector uses the JSSE configuration, when using APR, the 
83
+         This connector uses the JSSE configuration, when using APR, the
84
          connector should be using the OpenSSL style configuration
84
          connector should be using the OpenSSL style configuration
85
          described in the APR documentation -->
85
          described in the APR documentation -->
86
     <!--
86
     <!--
102
          Documentation at /docs/config/engine.html -->
102
          Documentation at /docs/config/engine.html -->
103
 
103
 
104
     <!-- You should set jvmRoute to support load-balancing via AJP ie :
104
     <!-- You should set jvmRoute to support load-balancing via AJP ie :
105
-    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">         
106
-    --> 
105
+    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
106
+    -->
107
     <Engine name="Catalina" defaultHost="localhost">
107
     <Engine name="Catalina" defaultHost="localhost">
108
 
108
 
109
       <!--For clustering, please take a look at documentation at:
109
       <!--For clustering, please take a look at documentation at:
111
           /docs/config/cluster.html (reference documentation) -->
111
           /docs/config/cluster.html (reference documentation) -->
112
       <!--
112
       <!--
113
       <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
113
       <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
114
-      -->        
114
+      -->
115
 
115
 
116
       <!-- The request dumper valve dumps useful debugging information about
116
       <!-- The request dumper valve dumps useful debugging information about
117
            the request and response data received and sent by Tomcat.
117
            the request and response data received and sent by Tomcat.
143
         <!-- Access log processes all example.
143
         <!-- Access log processes all example.
144
              Documentation at: /docs/config/valve.html -->
144
              Documentation at: /docs/config/valve.html -->
145
         <!--
145
         <!--
146
-        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
146
+        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
147
                prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
147
                prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
148
         -->
148
         -->
149
 
149
 

+ 38
- 38
roles/monitoring/files/etc_monit_monitrc View File

5
 ## Comments begin with a '#' and extend through the end of the line. Keywords
5
 ## Comments begin with a '#' and extend through the end of the line. Keywords
6
 ## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.
6
 ## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.
7
 ##
7
 ##
8
-## Below you will find examples of some frequently used statements. For 
9
-## information about the control file and a complete list of statements and 
8
+## Below you will find examples of some frequently used statements. For
9
+## information about the control file and a complete list of statements and
10
 ## options, please have a look in the Monit manual.
10
 ## options, please have a look in the Monit manual.
11
 ##
11
 ##
12
 ##
12
 ##
17
 ## Start Monit in the background (run as a daemon):
17
 ## Start Monit in the background (run as a daemon):
18
 #
18
 #
19
   set daemon 120            # check services at 2-minute intervals
19
   set daemon 120            # check services at 2-minute intervals
20
-#   with start delay 240    # optional: delay the first check by 4-minutes (by 
20
+#   with start delay 240    # optional: delay the first check by 4-minutes (by
21
 #                           # default Monit check immediately after Monit start)
21
 #                           # default Monit check immediately after Monit start)
22
 #
22
 #
23
 #
23
 #
24
 ## Set syslog logging with the 'daemon' facility. If the FACILITY option is
24
 ## Set syslog logging with the 'daemon' facility. If the FACILITY option is
25
-## omitted, Monit will use 'user' facility by default. If you want to log to 
25
+## omitted, Monit will use 'user' facility by default. If you want to log to
26
 ## a standalone log file instead, specify the full path to the log file
26
 ## a standalone log file instead, specify the full path to the log file
27
 #
27
 #
28
-# set logfile syslog facility log_daemon                       
28
+# set logfile syslog facility log_daemon
29
   set logfile /var/log/monit.log
29
   set logfile /var/log/monit.log
30
 #
30
 #
31
 #
31
 #
32
 ## Set the location of the Monit id file which stores the unique id for the
32
 ## Set the location of the Monit id file which stores the unique id for the
33
-## Monit instance. The id is generated and stored on first Monit start. By 
33
+## Monit instance. The id is generated and stored on first Monit start. By
34
 ## default the file is placed in $HOME/.monit.id.
34
 ## default the file is placed in $HOME/.monit.id.
35
 #
35
 #
36
 # set idfile /var/.monit.id
36
 # set idfile /var/.monit.id
44
 #
44
 #
45
   set statefile /var/lib/monit/state
45
   set statefile /var/lib/monit/state
46
 #
46
 #
47
-## Set the list of mail servers for alert delivery. Multiple servers may be 
48
-## specified using a comma separator. If the first mail server fails, Monit 
49
-# will use the second mail server in the list and so on. By default Monit uses 
47
+## Set the list of mail servers for alert delivery. Multiple servers may be
48
+## specified using a comma separator. If the first mail server fails, Monit
49
+# will use the second mail server in the list and so on. By default Monit uses
50
 # port 25 - it is possible to override this with the PORT option.
50
 # port 25 - it is possible to override this with the PORT option.
51
 #
51
 #
52
 # set mailserver mail.bar.baz,               # primary mailserver
52
 # set mailserver mail.bar.baz,               # primary mailserver
56
 
56
 
57
 set mailserver localhost
57
 set mailserver localhost
58
 
58
 
59
-## By default Monit will drop alert events if no mail servers are available. 
60
-## If you want to keep the alerts for later delivery retry, you can use the 
61
-## EVENTQUEUE statement. The base directory where undelivered alerts will be 
59
+## By default Monit will drop alert events if no mail servers are available.
60
+## If you want to keep the alerts for later delivery retry, you can use the
61
+## EVENTQUEUE statement. The base directory where undelivered alerts will be
62
 ## stored is specified by the BASEDIR option. You can limit the maximal queue
62
 ## stored is specified by the BASEDIR option. You can limit the maximal queue
63
-## size using the SLOTS option (if omitted, the queue is limited by space 
63
+## size using the SLOTS option (if omitted, the queue is limited by space
64
 ## available in the back end filesystem).
64
 ## available in the back end filesystem).
65
 #
65
 #
66
   set eventqueue
66
   set eventqueue
68
       slots 100                     # optionally limit the queue size
68
       slots 100                     # optionally limit the queue size
69
 #
69
 #
70
 #
70
 #
71
-## Send status and events to M/Monit (for more informations about M/Monit 
72
-## see http://mmonit.com/). By default Monit registers credentials with 
71
+## Send status and events to M/Monit (for more informations about M/Monit
72
+## see http://mmonit.com/). By default Monit registers credentials with
73
 ## M/Monit so M/Monit can smoothly communicate back to Monit and you don't
73
 ## M/Monit so M/Monit can smoothly communicate back to Monit and you don't
74
 ## have to register Monit credentials manually in M/Monit. It is possible to
74
 ## have to register Monit credentials manually in M/Monit. It is possible to
75
-## disable credential registration using the commented out option below. 
75
+## disable credential registration using the commented out option below.
76
 ## Though, if safety is a concern we recommend instead using https when
76
 ## Though, if safety is a concern we recommend instead using https when
77
 ## communicating with M/Monit and send credentials encrypted.
77
 ## communicating with M/Monit and send credentials encrypted.
78
 #
78
 #
104
 # set mail-format { from: monit@foo.bar }
104
 # set mail-format { from: monit@foo.bar }
105
 #
105
 #
106
 #
106
 #
107
-## You can set alert recipients whom will receive alerts if/when a 
108
-## service defined in this file has errors. Alerts may be restricted on 
109
-## events by using a filter as in the second example below. 
107
+## You can set alert recipients whom will receive alerts if/when a
108
+## service defined in this file has errors. Alerts may be restricted on
109
+## events by using a filter as in the second example below.
110
 #
110
 #
111
 # set alert sysadm@foo.bar                       # receive all alerts
111
 # set alert sysadm@foo.bar                       # receive all alerts
112
 # set alert manager@foo.bar only on { timeout }  # receive just service-
112
 # set alert manager@foo.bar only on { timeout }  # receive just service-
113
 #                                                # timeout alert
113
 #                                                # timeout alert
114
 #
114
 #
115
 #
115
 #
116
-## Monit has an embedded web server which can be used to view status of 
116
+## Monit has an embedded web server which can be used to view status of
117
 ## services monitored and manage services from a web interface. See the
117
 ## services monitored and manage services from a web interface. See the
118
-## Monit Wiki if you want to enable SSL for the web server. 
118
+## Monit Wiki if you want to enable SSL for the web server.
119
 #
119
 #
120
 # set httpd port 2812 and
120
 # set httpd port 2812 and
121
 #     use address localhost  # only accept connection from localhost
121
 #     use address localhost  # only accept connection from localhost
141
 #    if cpu usage (system) > 30% then alert
141
 #    if cpu usage (system) > 30% then alert
142
 #    if cpu usage (wait) > 20% then alert
142
 #    if cpu usage (wait) > 20% then alert
143
 #
143
 #
144
-#    
144
+#
145
 ## Check if a file exists, checksum, permissions, uid and gid. In addition
145
 ## Check if a file exists, checksum, permissions, uid and gid. In addition
146
-## to alert recipients in the global section, customized alert can be sent to 
147
-## additional recipients by specifying a local alert handler. The service may 
146
+## to alert recipients in the global section, customized alert can be sent to
147
+## additional recipients by specifying a local alert handler. The service may
148
 ## be grouped using the GROUP option. More than one group can be specified by
148
 ## be grouped using the GROUP option. More than one group can be specified by
149
 ## repeating the 'group name' statement.
149
 ## repeating the 'group name' statement.
150
-#    
150
+#
151
 #  check file apache_bin with path /usr/local/apache/bin/httpd
151
 #  check file apache_bin with path /usr/local/apache/bin/httpd
152
-#    if failed checksum and 
152
+#    if failed checksum and
153
 #       expect the sum 8f7f419955cefa0b33a2ba316cba3659 then unmonitor
153
 #       expect the sum 8f7f419955cefa0b33a2ba316cba3659 then unmonitor
154
 #    if failed permission 755 then unmonitor
154
 #    if failed permission 755 then unmonitor
155
 #    if failed uid root then unmonitor
155
 #    if failed uid root then unmonitor
159
 #        } with the mail-format { subject: Alarm! }
159
 #        } with the mail-format { subject: Alarm! }
160
 #    group server
160
 #    group server
161
 #
161
 #
162
-#    
162
+#
163
 ## Check that a process is running, in this case Apache, and that it respond
163
 ## Check that a process is running, in this case Apache, and that it respond
164
 ## to HTTP and HTTPS requests. Check its resource usage such as cpu and memory,
164
 ## to HTTP and HTTPS requests. Check its resource usage such as cpu and memory,
165
-## and number of children. If the process is not running, Monit will restart 
166
-## it by default. In case the service is restarted very often and the 
165
+## and number of children. If the process is not running, Monit will restart
166
+## it by default. In case the service is restarted very often and the
167
 ## problem remains, it is possible to disable monitoring using the TIMEOUT
167
 ## problem remains, it is possible to disable monitoring using the TIMEOUT
168
 ## statement. This service depends on another service (apache_bin) which
168
 ## statement. This service depends on another service (apache_bin) which
169
 ## is defined above.
169
 ## is defined above.
170
-#    
170
+#
171
 #  check process apache with pidfile /usr/local/apache/logs/httpd.pid
171
 #  check process apache with pidfile /usr/local/apache/logs/httpd.pid
172
 #    start program = "/etc/init.d/httpd start" with timeout 60 seconds
172
 #    start program = "/etc/init.d/httpd start" with timeout 60 seconds
173
 #    stop program  = "/etc/init.d/httpd stop"
173
 #    stop program  = "/etc/init.d/httpd stop"
176
 #    if totalmem > 200.0 MB for 5 cycles then restart
176
 #    if totalmem > 200.0 MB for 5 cycles then restart
177
 #    if children > 250 then restart
177
 #    if children > 250 then restart
178
 #    if loadavg(5min) greater than 10 for 8 cycles then stop
178
 #    if loadavg(5min) greater than 10 for 8 cycles then stop
179
-#    if failed host www.tildeslash.com port 80 protocol http 
179
+#    if failed host www.tildeslash.com port 80 protocol http
180
 #       and request "/somefile.html"
180
 #       and request "/somefile.html"
181
 #       then restart
181
 #       then restart
182
 #    if failed port 443 type tcpssl protocol http
182
 #    if failed port 443 type tcpssl protocol http
185
 #    if 3 restarts within 5 cycles then timeout
185
 #    if 3 restarts within 5 cycles then timeout
186
 #    depends on apache_bin
186
 #    depends on apache_bin
187
 #    group server
187
 #    group server
188
-#    
189
-#    
188
+#
189
+#
190
 ## Check filesystem permissions, uid, gid, space and inode usage. Other services,
190
 ## Check filesystem permissions, uid, gid, space and inode usage. Other services,
191
 ## such as databases, may depend on this resource and an automatically graceful
191
 ## such as databases, may depend on this resource and an automatically graceful
192
 ## stop may be cascaded to them before the filesystem will become full and data
192
 ## stop may be cascaded to them before the filesystem will become full and data
205
 #    group server
205
 #    group server
206
 #
206
 #
207
 #
207
 #
208
-## Check a file's timestamp. In this example, we test if a file is older 
208
+## Check a file's timestamp. In this example, we test if a file is older
209
 ## than 15 minutes and assume something is wrong if its not updated. Also,
209
 ## than 15 minutes and assume something is wrong if its not updated. Also,
210
 ## if the file size exceed a given limit, execute a script
210
 ## if the file size exceed a given limit, execute a script
211
 #
211
 #
217
 #    if size > 100 MB then exec "/my/cleanup/script" as uid dba and gid dba
217
 #    if size > 100 MB then exec "/my/cleanup/script" as uid dba and gid dba
218
 #
218
 #
219
 #
219
 #
220
-## Check directory permission, uid and gid.  An event is triggered if the 
221
-## directory does not belong to the user with uid 0 and gid 0.  In addition, 
220
+## Check directory permission, uid and gid.  An event is triggered if the
221
+## directory does not belong to the user with uid 0 and gid 0.  In addition,
222
 ## the permissions have to match the octal description of 755 (see chmod(1)).
222
 ## the permissions have to match the octal description of 755 (see chmod(1)).
223
 #
223
 #
224
 #  check directory bin with path /bin
224
 #  check directory bin with path /bin
227
 #    if failed gid 0 then unmonitor
227
 #    if failed gid 0 then unmonitor
228
 #
228
 #
229
 #
229
 #
230
-## Check a remote host availability by issuing a ping test and check the 
231
-## content of a response from a web server. Up to three pings are sent and 
230
+## Check a remote host availability by issuing a ping test and check the
231
+## content of a response from a web server. Up to three pings are sent and
232
 ## connection to a port and an application level network check is performed.
232
 ## connection to a port and an application level network check is performed.
233
 #
233
 #
234
 #  check host myserver with address 192.168.1.1
234
 #  check host myserver with address 192.168.1.1

+ 6
- 6
roles/vpn/files/etc_rc.local View File

1
 #!/bin/sh -e
1
 #!/bin/sh -e
2
-# 
2
+#
3
 # rc.local
3
 # rc.local
4
-# 
4
+#
5
 # This script is executed at the end of each multiuser runlevel.
5
 # This script is executed at the end of each multiuser runlevel.
6
 # Make sure that the script will "exit 0" on success or any other
6
 # Make sure that the script will "exit 0" on success or any other
7
 # value on error.
7
 # value on error.
8
-# 
8
+#
9
 # In order to enable or disable this script just change the execution
9
 # In order to enable or disable this script just change the execution
10
 # bits.
10
 # bits.
11
-# 
12
-  
11
+#
12
+
13
 iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
13
 iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
14
 iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
14
 iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
15
 iptables -A FORWARD -j REJECT
15
 iptables -A FORWARD -j REJECT
17
 
17
 
18
 /etc/init.d/dnsmasq restart
18
 /etc/init.d/dnsmasq restart
19
 
19
 
20
-exit 0
20
+exit 0

+ 21
- 21
roles/webmail/files/etc_roundcube_main.inc.php View File

25
 $rcmail_config['log_driver'] = 'file';
25
 $rcmail_config['log_driver'] = 'file';
26
 
26
 
27
 // date format for log entries
27
 // date format for log entries
28
-// (read http://php.net/manual/en/function.date.php for all format characters)  
28
+// (read http://php.net/manual/en/function.date.php for all format characters)
29
 $rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
29
 $rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
30
 
30
 
31
 // Syslog ident string to use, if using the 'syslog' log driver.
31
 // Syslog ident string to use, if using the 'syslog' log driver.
70
 // %s - domain name after the '@' from e-mail address provided at login screen
70
 // %s - domain name after the '@' from e-mail address provided at login screen
71
 // For example %n = mail.domain.tld, %d = domain.tld
71
 // For example %n = mail.domain.tld, %d = domain.tld
72
 // $rcmail_config['default_host'] = '';
72
 // $rcmail_config['default_host'] = '';
73
-$rcmail_config['default_host'] = 'ssl://127.0.0.1:993'; 
73
+$rcmail_config['default_host'] = 'ssl://127.0.0.1:993';
74
 
74
 
75
 // TCP port used for IMAP connections
75
 // TCP port used for IMAP connections
76
 // $rcmail_config['default_port'] = 143;
76
 // $rcmail_config['default_port'] = 143;
134
 // %z - IMAP domain (IMAP hostname without the first part)
134
 // %z - IMAP domain (IMAP hostname without the first part)
135
 // For example %n = mail.domain.tld, %d = domain.tld
135
 // For example %n = mail.domain.tld, %d = domain.tld
136
 // $rcmail_config['smtp_server'] = '';
136
 // $rcmail_config['smtp_server'] = '';
137
-$rcmail_config['smtp_server'] = 'ssl://127.0.0.1'; 
137
+$rcmail_config['smtp_server'] = 'ssl://127.0.0.1';
138
 
138
 
139
 // SMTP port (default is 25; 465 for SSL)
139
 // SMTP port (default is 25; 465 for SSL)
140
 $rcmail_config['smtp_port'] = 465;
140
 $rcmail_config['smtp_port'] = 465;
142
 // SMTP username (if required) if you use %u as the username Roundcube
142
 // SMTP username (if required) if you use %u as the username Roundcube
143
 // will use the current username for login
143
 // will use the current username for login
144
 //$rcmail_config['smtp_user'] = '';
144
 //$rcmail_config['smtp_user'] = '';
145
-$rcmail_config['smtp_user'] = '%u'; 
145
+$rcmail_config['smtp_user'] = '%u';
146
 
146
 
147
 // SMTP password (if required) if you use %p as the password Roundcube
147
 // SMTP password (if required) if you use %p as the password Roundcube
148
 // will use the current user's password for login
148
 // will use the current user's password for login
149
 //$rcmail_config['smtp_pass'] = '';
149
 //$rcmail_config['smtp_pass'] = '';
150
-$rcmail_config['smtp_pass'] = '%p'; 
150
+$rcmail_config['smtp_pass'] = '%p';
151
 
151
 
152
 // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
152
 // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
153
 // best server supported one)
153
 // best server supported one)
159
 // Optional SMTP authentication password to be used for smtp_auth_cid
159
 // Optional SMTP authentication password to be used for smtp_auth_cid
160
 $rcmail_config['smtp_auth_pw'] = null;
160
 $rcmail_config['smtp_auth_pw'] = null;
161
 
161
 
162
-// SMTP HELO host 
163
-// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages 
164
-// Leave this blank and you will get the server variable 'server_name' or 
165
-// localhost if that isn't defined. 
162
+// SMTP HELO host
163
+// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
164
+// Leave this blank and you will get the server variable 'server_name' or
165
+// localhost if that isn't defined.
166
 $rcmail_config['smtp_helo_host'] = '';
166
 $rcmail_config['smtp_helo_host'] = '';
167
 
167
 
168
 // SMTP connection timeout, in seconds. Default: 0 (no limit)
168
 // SMTP connection timeout, in seconds. Default: 0 (no limit)
283
 $rcmail_config['sendmail_delay'] = 0;
283
 $rcmail_config['sendmail_delay'] = 0;
284
 
284
 
285
 // Maximum number of recipients per message. Default: 0 (no limit)
285
 // Maximum number of recipients per message. Default: 0 (no limit)
286
-$rcmail_config['max_recipients'] = 0; 
286
+$rcmail_config['max_recipients'] = 0;
287
 
287
 
288
 // Maximum allowednumber of members of an address group. Default: 0 (no limit)
288
 // Maximum allowednumber of members of an address group. Default: 0 (no limit)
289
 // If 'max_recipients' is set this value should be less or equal
289
 // If 'max_recipients' is set this value should be less or equal
290
-$rcmail_config['max_group_members'] = 0; 
290
+$rcmail_config['max_group_members'] = 0;
291
 
291
 
292
 // add this user-agent to message headers when sending
292
 // add this user-agent to message headers when sending
293
 $rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
293
 $rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
368
 // USER INTERFACE
368
 // USER INTERFACE
369
 // ----------------------------------
369
 // ----------------------------------
370
 
370
 
371
-// default messages sort column. Use empty value for default server's sorting, 
371
+// default messages sort column. Use empty value for default server's sorting,
372
 // or 'arrival', 'date', 'subject', 'from', 'to', 'size', 'cc'
372
 // or 'arrival', 'date', 'subject', 'from', 'to', 'size', 'cc'
373
 $rcmail_config['message_sort_col'] = '';
373
 $rcmail_config['message_sort_col'] = '';
374
 
374
 
427
 
427
 
428
 // automatically create the above listed default folders on first login
428
 // automatically create the above listed default folders on first login
429
 // $rcmail_config['create_default_folders'] = false;
429
 // $rcmail_config['create_default_folders'] = false;
430
-$rcmail_config['create_default_folders'] = true; 
430
+$rcmail_config['create_default_folders'] = true;
431
 
431
 
432
 // protect the default folders from renames, deletes, and subscription changes
432
 // protect the default folders from renames, deletes, and subscription changes
433
 $rcmail_config['protect_default_folders'] = true;
433
 $rcmail_config['protect_default_folders'] = true;
434
 
434
 
435
-// if in your system 0 quota means no limit set this option to true 
435
+// if in your system 0 quota means no limit set this option to true
436
 $rcmail_config['quota_zero_as_unlimited'] = false;
436
 $rcmail_config['quota_zero_as_unlimited'] = false;
437
 
437
 
438
 // Make use of the built-in spell checker. It is based on GoogieSpell.
438
 // Make use of the built-in spell checker. It is based on GoogieSpell.
504
 // Array key must contain only safe characters, ie. a-zA-Z0-9_
504
 // Array key must contain only safe characters, ie. a-zA-Z0-9_
505
 $rcmail_config['ldap_public'] = array();
505
 $rcmail_config['ldap_public'] = array();
506
 
506
 
507
-// If you are going to use LDAP for individual address books, you will need to 
507
+// If you are going to use LDAP for individual address books, you will need to
508
 // set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
508
 // set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
509
 //
509
 //
510
 // The recommended directory structure for LDAP is to store all the address book entries
510
 // The recommended directory structure for LDAP is to store all the address book entries
605
 // definition for contact groups (uncomment if no groups are supported)
605
 // definition for contact groups (uncomment if no groups are supported)
606
 // for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above)
606
 // for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above)
607
 // if the groups base_dn is empty, the contact base_dn is used for the groups as well
607
 // if the groups base_dn is empty, the contact base_dn is used for the groups as well
608
-// -> in this case, assure that groups and contacts are separated due to the concernig filters! 
608
+// -> in this case, assure that groups and contacts are separated due to the concernig filters!
609
 'groups'        => array(
609
 'groups'        => array(
610
 'base_dn'     => '',
610
 'base_dn'     => '',
611
 'scope'       => 'sub',   // search mode: sub|base|list
611
 'scope'       => 'sub',   // search mode: sub|base|list
685
 $rcmail_config['show_images'] = 0;
685
 $rcmail_config['show_images'] = 0;
686
 
686
 
687
 // compose html formatted messages by default
687
 // compose html formatted messages by default
688
-// 0 - never, 1 - always, 2 - on reply to HTML message only 
688
+// 0 - never, 1 - always, 2 - on reply to HTML message only
689
 $rcmail_config['htmleditor'] = 0;
689
 $rcmail_config['htmleditor'] = 0;
690
 
690
 
691
 // show pretty dates as standard
691
 // show pretty dates as standard
707
 // Compact INBOX on logout
707
 // Compact INBOX on logout
708
 $rcmail_config['logout_expunge'] = false;
708
 $rcmail_config['logout_expunge'] = false;
709
 
709
 
710
-// Display attached images below the message body 
710
+// Display attached images below the message body
711
 $rcmail_config['inline_images'] = true;
711
 $rcmail_config['inline_images'] = true;
712
 
712
 
713
 // Encoding of long/non-ascii attachment names:
713
 // Encoding of long/non-ascii attachment names:
738
 // If true, after message delete/move, the next message will be displayed
738
 // If true, after message delete/move, the next message will be displayed
739
 $rcmail_config['display_next'] = false;
739
 $rcmail_config['display_next'] = false;
740
 
740
 
741
-// 0 - Do not expand threads 
742
-// 1 - Expand all threads automatically 
743
-// 2 - Expand only threads with unread messages 
741
+// 0 - Do not expand threads
742
+// 1 - Expand all threads automatically
743
+// 2 - Expand only threads with unread messages
744
 $rcmail_config['autoexpand_threads'] = 0;
744
 $rcmail_config['autoexpand_threads'] = 0;
745
 
745
 
746
 // When replying place cursor above original message (top posting)
746
 // When replying place cursor above original message (top posting)

Loading…
Cancel
Save