Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Django Private Storage
Commits
7945019d
Unverified
Commit
7945019d
authored
May 16, 2018
by
Diederik van der Boor
Browse files
Release 2.1.1
parent
f6223eea
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGES.rst
View file @
7945019d
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)
---------------------------
...
...
README.rst
View file @
7945019d
...
...
@@ -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
~~~~~~~~~~~~~~~~
...
...
private_storage/__init__.py
View file @
7945019d
# following PEP 440
__version__
=
"2.1"
__version__
=
"2.1
.1
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment