forked from Leuchtfeuer/typo3-secure-downloads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_conf_template.txt
58 lines (35 loc) · 3.76 KB
/
ext_conf_template.txt
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
# customsubcategory=parsing=Parsing;
# cat=basic/parsing; type=string; label=Domain: A domain prefix before the secured directories part (e.g. http://www.host.com/). Not needed for internal (relative) links.
domain = http://mydomain.com/|http://my.other.domain.org/
# cat=basic/parsing; type=string; label=Directory Pattern: What directories shall be protected? Multiple directory patterns can be separated by a pipe (|).
securedDirs = typo3temp|fileadmin|uploads
# cat=basic/parsing; type=string; label=File Type Pattern: What file types (read: extensions) shall be protected? Multiple file extension patterns can be separated by a pipe (|).
securedFiletypes = pdf|jpe?g|gif|png|odt|pptx?|docx?|xlsx?|zip|rar|tgz|tar|gz
# customsubcategory=security=Security;
# cat=basic/security; type=boolean; label = Enable Group Check: Allows forwarding a secure download link to others, who can access that file if they have at least one front-end user group in common. Enabling this makes the checks LESS restrictive!
enableGroupCheck = 0
# cat=basic/security; type=string; label=Group Check enabled Directories: A list of directories for the less restrictive group check, separated by a pipe (|). Leave empty if you want to enable the group check for all directories.
groupCheckDirs =
# cat=basic/security; type=string; label=Exclude Groups from Group Check: A comma separated list of groups that are excluded from the group check feature (if enabled).
excludeGroups =
# customsubcategory=link=Link Generation;
# cat=basic/link; type=int; label=Additional Link Timeout: The secure link is only valid for a limited time, which is calculated from the cache time that is used for the page that carries the link plus this value (in seconds). Default is 3600 sec (= 1 h).
cachetimeadd = 3600
# cat=basic/link; type=string; label=Link Format: The Format for the link generated by secure_downloads. You can change this if you apply appropriate mod_rewrite rules in your .htaccess file. Example: set linkFormat to: "securedl/###PAGE###/###FEUSER###/###FEGROUPS###/###TIMEOUT###/###HASH###/###FILE###" and put the following in your .htaccess file: "RewriteRule ^securedl/([\d]+)/([\d]+)/([\d]+(,[\d]+)*)/([\d]+)/([0123456789abcdef]+)/([^&]+)$ index.php?eID=tx_securedownloads&p=$1u=$2&g=$3&t=$4&hash=$5&file=$6 [nc,L]"
linkFormat = index.php?eID=tx_securedownloads&p=###PAGE###&u=###FEUSER###&g=###FEGROUPS###&t=###TIMEOUT###&hash=###HASH###&file=###FILE###
# cat=filedelivery; type=boolean; label=apacheDelivery: Feature to deliver files through Apache not PHP (Beta)
apacheDelivery = 0
# cat=filedelivery; type=boolean; label = forcedownload: Force Download of specified filetypes
forcedownload = 0
# cat=filedelivery; type=string; label=forcedownloadtype:a list of filetypes that should not be opened inline in a browser, seperated by a pipe. Only used if forcedownload is true
forcedownloadtype = odt|pptx?|docx?|xlsx?|zip|rar|tgz|tar|gz
# cat=filedelivery; type=string; label=additionalMimeTypes: Comma separated list of additional MIME types (file extension / mime type pairs, in which file extension and MIME type is separated by a pipe symbol). Can be used to override existing MIME type settings of the extension as well.
additionalMimeTypes = txt|text/plain,html|text/html
# cat=filedelivery; type=string; label = outputFunction:PHP function which is used to deliver the secured files (one of readfile, readfile_chunked, fpassthru)
outputFunction = readfile
# cat=filedelivery; type=int; label = outputChunkSize: Size of chunks to be delivered in one go (only relevant if "readfile_chunked" is used) (default: 1048576 Bytes)
outputChunkSize = 1048576
# cat=module; type=boolean; label = log:Log each file access
log = 0
# cat=debug; type=int[0-3]; label = debug level (output each tag that maches the regex and will be replaced)
debug = 0