summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/params/attachment.html.tmpl
blob: 1e65f0ca4ca49a115b93b0877af88d1116b0d3e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[%# This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  #
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
  #%]
[%
   title = "Attachments"
   desc = "Set up attachment options"
%]

[% param_descs = {
  allow_attachment_display =>
    "If this option is on, users will be able to view attachments from"
    _ " their browser, if their browser supports the attachment's MIME type."
    _ " If this option is off, users are forced to download attachments,"
    _ " even if the browser is able to display them."
    _ "<p>This is a security restriction for installations where untrusted"
    _ " users may upload attachments that could be potentially damaging if"
    _ " viewed directly in the browser.</p>"
    _ "<p>It is highly recommended that you set the <var>attachment_base</var>"
    _ " parameter if you turn this parameter on.",

  attachment_base => 
    "When the <var>allow_attachment_display</var> parameter is on, it is "
    _ " possible for a malicious attachment to steal your cookies or"
    _ " perform an attack on Bugzilla using your credentials."
    _ "<p>If you would like additional security on attachments to avoid"
    _ " this, set this parameter to an alternate URL for your Bugzilla"
    _ " that is not the same as <var>urlbase</var> or <var>sslbase</var>."
    _ " That is, a different domain name that resolves to this exact"
    _ " same Bugzilla installation.</p>"
    _ "<p>For added security, you can insert <var>%bugid%</var> into the URL,"
    _ " which will be replaced with the ID of the current $terms.bug that"
    _ " the attachment is on, when you access an attachment. This will limit"
    _ " attachments to accessing only other attachments on the same"
    _ " ${terms.bug}. Remember, though, that all those possible domain names "
    _ " (such as <kbd>1234.your.domain.com</kbd>) must point to this same"
    _ " Bugzilla instance.",

  allow_attachment_deletion => "If this option is on, administrators will be able to delete " _
                               "the content of attachments.",

  maxattachmentsize => "The maximum size (in kilobytes) of attachments to be stored " _
                       "in the database. If a file larger than this size is attached " _
                       "to ${terms.abug}, Bugzilla will look at the " _
                       "<a href=\"#maxlocalattachment\"><var>maxlocalattachment</var> parameter</a> " _
                       "to determine if the file can be stored locally on the web server. " _
                       "If the file size exceeds both limits, then the attachment is rejected. " _
                       "Settings both parameters to 0 will prevent attaching files to ${terms.bugs}.",

  maxlocalattachment => "The maximum size (in megabytes) of attachments to be stored " _
                        "locally on the web server. If set to a value lower than the " _
                        "<a href=\"#maxattachmentsize\"><var>maxattachmentsize</var> parameter</a>, " _
                        "attachments will never be kept on the local filesystem. " _
                        "If you want to store all attachments on disk rather than in the " _
                        "database, then set <a href=\"#maxattachmentsize\">" _
                        "<var>maxattachmentsize</var> parameter</a> to 0. ",


  xsendfile_header =>
    "By default, attachments are served by the CGI script. " _
    "If you enable filesystem file storage for large files using the " _
    "<a href=\"#maxlocalattachment\"><var>maxlocalattachment</var> parameter</a> " _
    "then you can have those files served directly by the webserver, which " _
    "avoids copying them entirely into memory, and this may result in a " _
    "performance improvement. To do this, configure your webserver appropriately " _
    "and then set the correct header, as follows:" _
    "<ul>" _
    "<li>Apache: <code>X-Sendfile</code> header; see " _
    "<code><a href=\"https://tn123.org/mod_xsendfile/\">mod_xsendfile</a></code> module</li>" _
    "<li>nginx: <code>X-Accel-Redirect</code> header; see "_
    "<a href=\"http://wiki.nginx.org/X-accel\">webserver documentation</a> for additional configuration</li>" _
    "<li>lighttpd: <code>X-LIGHTTPD-send-file</code> header; see " _
    "<a href=\"http://redmine.lighttpd.net/projects/1/wiki/X-LIGHTTPD-send-file\">webserver documentation</a> for additional configuration</li>" _
    "</ul><br>" _
    "Please note that attachments stored in the database cannot be offloaded " _
    "to apache/nginx/lighttpd and are always handled by the CGI script."

  }

%]