mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add content headers to config (#3731)
* add content header * add content header * fix format * fix format
This commit is contained in:
parent
8bcf72fbb2
commit
a3c9331a08
@ -47,6 +47,9 @@ server {
|
|||||||
|
|
||||||
# Media files require user authentication
|
# Media files require user authentication
|
||||||
auth_request /auth;
|
auth_request /auth;
|
||||||
|
|
||||||
|
# Content header to force download
|
||||||
|
add_header Content-disposition "attachment";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Use the 'user' API endpoint for auth
|
# Use the 'user' API endpoint for auth
|
||||||
|
@ -46,6 +46,9 @@ server {
|
|||||||
|
|
||||||
# Media files require user authentication
|
# Media files require user authentication
|
||||||
auth_request /auth;
|
auth_request /auth;
|
||||||
|
|
||||||
|
# Content header to force download
|
||||||
|
add_header Content-disposition "attachment";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Use the 'user' API endpoint for auth
|
# Use the 'user' API endpoint for auth
|
||||||
|
Loading…
Reference in New Issue
Block a user