forked from TYPO3-extensions/naw_securedl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathext_conf_template.txt
53 lines (37 loc) · 3.77 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
# customsubcategory=parsing=Parsing;
# cat=basic/parsing; type=string; label=Directory Pattern: A pattern for directories of files that should be secured. Multiple directory patterns can be separated by a pipe.
securedDirs = typo3temp|fileadmin|uploads
# cat=basic/parsing; type=string; label=File Type Pattern: A file type pattern for files that should be secured. Multiple file type patterns can be separated by a pipe.
filetype = pdf|jpe?g|gif|png|odt|pptx?|docx?|xlsx?|zip|rar|tgz|tar|gz
# cat=basic/parsing; type=string; label=Domain: A domain prefix before the securedDirs part (e.g. http://www.host.com/). Not needed for internal (relative) links.
domain = http://mydomain.com/|http://my.other.domain.org/
# customsubcategory=link=Link Generation;
# cat=basic/link; type=boolean; label = FAL Usage: This option enables full FAL compatibility and enhancements (no HTML parsing). Read the manual for details.
enableFileAbstractionLayerHandling = 0
# cat=basic/link; type=int; label=Additional Link Timeout: Additional time added to the cache time of the page or to the default cache time (default 3600sec = 1h)
cachetimeadd = 3600
# cat=basic/link; type=string; label=Link Format: The Format for the link generated by naw_securedl. You can change this if you apply appropriate mod_rewrite rules in your .htaccess file. Example: set linkFormat to: "securedl/###FEUSER###/###FEGROUPS###/###TIMEOUT###/###HASH###/###FILE###" and put the following in your .htaccess file: "RewriteRule ^securedl/([\d]+)/([\d]+(,[\d]+)*)/([\d]+)/([0123456789abcdef]+)/([^&]+)$ index.php?eID=tx_nawsecuredl&u=$1&g=$2&t=$4&hash=$5&file=$6 [nc,L]"
linkFormat = index.php?eID=tx_nawsecuredl&u=###FEUSER###&g=###FEGROUPS###&t=###TIMEOUT###&hash=###HASH###&file=###FILE###
# customsubcategory=security=Security;
# cat=basic/security; type=boolean; label = Enable Group Check: Allows file download if the user has at least one group in common with the list of transmitted groups. Enabling this, makes the checks LESS restrictive!
enableGroupCheck = 0
# cat=basic/security; type=string; label=Group Check enabled Directories: A list of directories that should enable 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 if enabled
excludeGroups =
# 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=boolean; label = log:Log each file access
log = 0
# 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 deliverd in one go (only relevant if readfile_chunked is used) (default: 1048576 Bytes)
outputChunkSize = 1048576
# cat=debug; type=int[0-3]; label = debug level (output each tag that maches the regex and will be replaced)
debug = 0