diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-02-17 21:20:12 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-02-17 21:20:12 +0100 |
commit | 21c6b40156db5a505215d4ce57fcab0ff6691300 (patch) | |
tree | 9dd8b61796c86e1b6694406ad3660cf64d00ce09 /historic/guix/etc/nginx/apps/drupal/drupal_upload_progress.conf | |
parent | be061b4da9a8850412c216bdf49589e6951527c5 (diff) | |
download | deployment-21c6b40156db5a505215d4ce57fcab0ff6691300.tar.gz deployment-21c6b40156db5a505215d4ce57fcab0ff6691300.tar.bz2 deployment-21c6b40156db5a505215d4ce57fcab0ff6691300.zip |
move unmaintained files to historic/
Diffstat (limited to 'historic/guix/etc/nginx/apps/drupal/drupal_upload_progress.conf')
-rw-r--r-- | historic/guix/etc/nginx/apps/drupal/drupal_upload_progress.conf | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/historic/guix/etc/nginx/apps/drupal/drupal_upload_progress.conf b/historic/guix/etc/nginx/apps/drupal/drupal_upload_progress.conf new file mode 100644 index 0000000..843fb06 --- /dev/null +++ b/historic/guix/etc/nginx/apps/drupal/drupal_upload_progress.conf @@ -0,0 +1,23 @@ +# -*- mode: nginx; mode: flyspell-prog; ispell-current-dictionary: american -*- + +### Drupal 7 configuration for the Nginx Upload Progress module: +### https://github.com/masterzen/nginx-upload-progress-module +### This requires the Filefield Nginx Progress module: +### http://drupal.org/project/filefield_nginx_progress. + +## The Nginx module wants ?X-Progress-ID query parameter so +## that it report the progress of the upload through a GET +## request. But the drupal form element makes use of clean +## URLs in the POST. + +location ~ (?<upload_form_uri>.*)/x-progress-id:(?<upload_id>\d*) { + rewrite ^ $upload_form_uri?X-Progress-ID=$upload_id; +} + +## Now the above rewrite must be matched by a location that +## activates it and references the above defined upload +## tracking zone. +location ^~ /progress { + upload_progress_json_output; + report_uploads uploads; +} |