Add content headers to config (#3731)

* add content header

* add content header

* fix format

* fix format
This commit is contained in:
Matthias Mair 2022-09-30 02:47:56 +02:00 committed by GitHub
parent 8bcf72fbb2
commit a3c9331a08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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