mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 15:36:18 -05:00
Including filename in nginx response for media.
This commit is contained in:
parent
3eef62f14a
commit
c6e298448a
2 changed files with 6 additions and 0 deletions
|
|
@ -60,6 +60,9 @@ http {
|
|||
}
|
||||
|
||||
location /media {
|
||||
if ( $request_filename ~ '^.*/(.+)$' ) {
|
||||
add_header Content-Disposition 'attachment; filename="$1"';
|
||||
}
|
||||
|
||||
# The media files mounted in the docker volume
|
||||
sendfile on;
|
||||
|
|
|
|||
|
|
@ -50,6 +50,9 @@ http {
|
|||
}
|
||||
|
||||
location /media {
|
||||
if ( $request_filename ~ '^.*/(.+)$' ) {
|
||||
add_header Content-Disposition 'attachment; filename="$1"';
|
||||
}
|
||||
|
||||
# The media files mounted in the docker volume
|
||||
sendfile on;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue