mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
28 lines
677 B
Caddyfile
28 lines
677 B
Caddyfile
{
|
|
debug
|
|
}
|
|
|
|
:80 {
|
|
respond /caddy-health-check 200
|
|
|
|
handle_path /media/* {
|
|
@downloads {
|
|
query dl=*
|
|
}
|
|
header @downloads Content-Disposition "attachment; filename={query.dl}"
|
|
header X-Content-Type-Options "nosniff"
|
|
header Content-Security-Policy "sandbox; default-src 'none'; script-src 'none'; object-src 'none'; base-uri 'none'"
|
|
|
|
header {
|
|
Access-Control-Allow-Origin {$PUBLIC_WEB_FRONTEND_URL:http://localhost:3000}
|
|
Access-Control-Allow-Methods "GET, HEAD, OPTIONS"
|
|
Access-Control-Allow-Headers "*"
|
|
Access-Control-Expose-Headers "Content-Length, Content-Type"
|
|
}
|
|
|
|
file_server {
|
|
root {$MEDIA_ROOT:/baserow/media/}
|
|
}
|
|
}
|
|
}
|