mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Update Caddyfile (#6919)
Force file download for /media/ files for improved security
This commit is contained in:
parent
50a4f74d7e
commit
c6ea5228cb
@ -45,6 +45,8 @@
|
||||
root * /var/www/media
|
||||
file_server
|
||||
|
||||
header Content-Disposition attachment
|
||||
|
||||
forward_auth {$INVENTREE_SERVER:"http://inventree-server:8000"} {
|
||||
uri /auth/
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user