Unverified Commit 7945019d authored by Diederik van der Boor's avatar Diederik van der Boor
Browse files

Release 2.1.1

parent f6223eea
Changelog
=========
Changes in x.y (Date TBD)
---------------------------
Changes in 2.1.1 (2018-05-16)
-----------------------------
* Fixed ``X-Accel-Redirect`` non-ASCII filename encoding in Nginx.
* Fixed ``X-Accel-Redirect`` non-ascii filename URI encoding compatiblity with ``nginx`` >= 1.5.9.
* For very old Nginx versions, you'll have to configure ``PRIVATE_STORAGE_NGINX_VERSION``,
because Nginx versions before 1.5.9 (released in 2014) handle non-ASCII filenames differently.
* the ``PRIVATE_STORAGE_NGINX_VERSION`` is now used to determine proper behaviour, which defaults to assuming >=1.5.9
Changes in 2.1 (2018-05-08)
---------------------------
......
......@@ -202,7 +202,6 @@ For Nginx
PRIVATE_STORAGE_SERVER = 'nginx'
PRIVATE_STORAGE_INTERNAL_URL = '/private-x-accel-redirect/'
PRIVATE_STORAGE_NGINX_VERSION = 'your.nginx.version'
Add the following location block in the server config:
......@@ -213,12 +212,8 @@ Add the following location block in the server config:
alias /path/to/private-media/;
}
The ``PRIVATE_STORAGE_NGINX_VERSION`` setting is used to determine the proper encoding of the ``X-Accel-Redirect``
header when dealing with non-ascii file names. Specifically, versions starting with ``1.5.9`` expect the value of the
header to be URL encoded, while older versions require the raw/MIME encoded file path.
The default behaviour is to quote the header (nginx >= 1.5.9), so you have to assign this setting if your nginx
version is lower than that.
For very old Nginx versions, you'll have to configure ``PRIVATE_STORAGE_NGINX_VERSION``,
because Nginx versions before 1.5.9 (released in 2014) handle non-ASCII filenames differently.
Other webservers
~~~~~~~~~~~~~~~~
......
# following PEP 440
__version__ = "2.1"
__version__ = "2.1.1"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment