mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 18:31:16 +00:00
Update Caddyfile (#6919)
Force file download for /media/ files for improved security
This commit is contained in:
1 parent
50a4f74d7e
commit
c6ea5228cb
1 file changed
+2
@@ -45,6 +45,8 @@
|
|||||||
root * /var/www/media
|
root * /var/www/media
|
||||||
file_server
|
file_server
|
||||||
|
|
||||||
|
header Content-Disposition attachment
|
||||||
|
|
||||||
forward_auth {$INVENTREE_SERVER:"http://inventree-server:8000"} {
|
forward_auth {$INVENTREE_SERVER:"http://inventree-server:8000"} {
|
||||||
uri /auth/
|
uri /auth/
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user