Update Caddyfile (#6919)

Force file download for /media/ files for improved security
This commit is contained in:
Oliver 2024-04-02 21:12:25 +11:00 committed by GitHub
parent 50a4f74d7e
commit c6ea5228cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,6 +45,8 @@
root * /var/www/media
file_server
header Content-Disposition attachment
forward_auth {$INVENTREE_SERVER:"http://inventree-server:8000"} {
uri /auth/
}