Skip to content

Commit

Permalink
Add content headers to config (#3731)
Browse files Browse the repository at this point in the history
* add content header

* add content header

* fix format

* fix format
  • Loading branch information
matmair committed Sep 30, 2022
1 parent 8bcf72f commit a3c9331
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/nginx.dev.conf
Expand Up @@ -47,6 +47,9 @@ server {

# Media files require user authentication
auth_request /auth;

# Content header to force download
add_header Content-disposition "attachment";
}

# Use the 'user' API endpoint for auth
Expand Down
3 changes: 3 additions & 0 deletions docker/production/nginx.prod.conf
Expand Up @@ -46,6 +46,9 @@ server {

# Media files require user authentication
auth_request /auth;

# Content header to force download
add_header Content-disposition "attachment";
}

# Use the 'user' API endpoint for auth
Expand Down

0 comments on commit a3c9331

Please sign in to comment.