couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [06/32] git commit: updated refs/heads/1781-reorganize-and-improve-docs to 11fd32a
Date Fri, 14 Jun 2013 08:25:03 GMT
Describe attachments config section.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/5082c240
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/5082c240
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/5082c240

Branch: refs/heads/1781-reorganize-and-improve-docs
Commit: 5082c2402aa6e2988ccdeac308b7ee5ee47579f7
Parents: fba2826
Author: Alexander Shorin <kxepal@apache.org>
Authored: Mon Jun 10 16:07:22 2013 +0400
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Tue Jun 11 18:54:13 2013 +0400

----------------------------------------------------------------------
 share/doc/build/Makefile.am          |  3 +++
 share/doc/src/config/attachments.rst | 45 +++++++++++++++++++++++++++++++
 share/doc/src/config/index.rst       |  1 +
 3 files changed, 49 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/5082c240/share/doc/build/Makefile.am
----------------------------------------------------------------------
diff --git a/share/doc/build/Makefile.am b/share/doc/build/Makefile.am
index 632f6ac..f768216 100644
--- a/share/doc/build/Makefile.am
+++ b/share/doc/build/Makefile.am
@@ -54,6 +54,7 @@ html_files = \
     html/_sources/api/misc.txt \
     html/_sources/api/reference.txt \
     html/_sources/config/admins.txt \
+    html/_sources/config/attachments.txt \
     html/_sources/config/cors.txt \
     html/_sources/config/httpd.txt \
     html/_sources/config/index.txt \
@@ -105,6 +106,7 @@ html_files = \
     html/api/misc.html \
     html/api/reference.html \
     html/config/admins.html \
+    html/config/attachments.html \
     html/config/cors.html \
     html/config/httpd.html \
     html/config/index.html \
@@ -154,6 +156,7 @@ src_files = \
     ../src/api/misc.rst \
     ../src/api/reference.rst \
     ../src/config/admins.rst \
+    ../src/config/attachments.rst \
     ../src/config/cors.rst \
     ../src/config/httpd.rst \
     ../src/config/index.rst \

http://git-wip-us.apache.org/repos/asf/couchdb/blob/5082c240/share/doc/src/config/attachments.rst
----------------------------------------------------------------------
diff --git a/share/doc/src/config/attachments.rst b/share/doc/src/config/attachments.rst
new file mode 100644
index 0000000..6176416
--- /dev/null
+++ b/share/doc/src/config/attachments.rst
@@ -0,0 +1,45 @@
+.. Licensed under the Apache License, Version 2.0 (the "License"); you may not
+.. use this file except in compliance with the License. You may obtain a copy of
+.. the License at
+..
+..   http://www.apache.org/licenses/LICENSE-2.0
+..
+.. Unless required by applicable law or agreed to in writing, software
+.. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+.. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+.. License for the specific language governing permissions and limitations under
+.. the License.
+
+.. highlight:: ini
+
+.. _config/attachments:
+
+``[attachments]`` :: Configuration of Attachment Storage
+========================================================
+
+These options are under ``[attachments]`` section.
+
+
+.. _config/attachments/compression_level:
+
+``compression_level``
+---------------------
+
+Defines zlib compression level for the attachments from ``1`` (lowest, fastest)
+to ``9`` (highest, slowest). ``0`` value disables compression::
+
+  [attachments]
+  compression_level = 8
+
+
+.. _config/attachments/compressible_types:
+
+``compressible_types``
+----------------------
+
+While not all attached files could be compressed well, it's possible to let
+CouchDB compress only specific attachments according by their MIME type::
+
+  [attachments]
+  compressible_types = text/*, application/javascript, application/json, application/xml
+

http://git-wip-us.apache.org/repos/asf/couchdb/blob/5082c240/share/doc/src/config/index.rst
----------------------------------------------------------------------
diff --git a/share/doc/src/config/index.rst b/share/doc/src/config/index.rst
index a89979a..0d6fcb4 100644
--- a/share/doc/src/config/index.rst
+++ b/share/doc/src/config/index.rst
@@ -48,6 +48,7 @@ Content:
    :glob:
 
    admins
+   attachments
    cors
    httpd
    os-daemons


Mime
View raw message