Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CDECAC15A for ; Fri, 14 Jun 2013 08:25:25 +0000 (UTC) Received: (qmail 87753 invoked by uid 500); 14 Jun 2013 08:25:13 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 87197 invoked by uid 500); 14 Jun 2013 08:25:10 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 85607 invoked by uid 99); 14 Jun 2013 08:24:59 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jun 2013 08:24:59 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id AEBFC816C1F; Fri, 14 Jun 2013 08:24:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kxepal@apache.org To: commits@couchdb.apache.org Date: Fri, 14 Jun 2013 08:25:03 -0000 Message-Id: <04ff5a2648bc44caa6f5d3214c167651@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [06/32] git commit: updated refs/heads/1781-reorganize-and-improve-docs to 11fd32a 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 Authored: Mon Jun 10 16:07:22 2013 +0400 Committer: Alexander Shorin 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