Skip to content

Commit 43e199b

Browse files
authored
add header to nginx configuration (#5674)
1 parent e7e8a51 commit 43e199b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

nginx/nginx.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ http {
3131
alias /usr/share/nginx/html/static/;
3232
}
3333
location /media/ {
34+
add_header Content-Disposition attachment;
3435
alias /usr/share/nginx/html/media/;
3536
}
3637
location / {

nginx/nginx_TLS.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ http {
4848
alias /usr/share/nginx/html/static/;
4949
}
5050
location /media/ {
51+
add_header Content-Disposition attachment;
5152
alias /usr/share/nginx/html/media/;
5253
}
5354
location / {

0 commit comments

Comments
 (0)