Skip to content

Instantly share code, notes, and snippets.

/setup.txt Secret

Created March 23, 2015 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f512c6f6374b5890920d to your computer and use it in GitHub Desktop.
Save anonymous/f512c6f6374b5890920d to your computer and use it in GitHub Desktop.
# This PAGE objects catches every file download request and
# uses either "readfile" or "x-sendfile" to deliver file contents
# to the client
nxsecuredownload = PAGE
nxsecuredownload {
typeNum = 1424796397
config {
disableAllHeaderCode = 1
disablePrefixComment = 1
disableCharsetHeader = 1
additionalHeaders =
enableContentLengthHeader = 0
}
10 = USER_INT
10 {
userFunc = Netlogix\Nxsecuredownload\Service\RenderingDispatcher->run
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment