feat: publish av-tools 0.1.0
This commit is contained in:
25
deployment/caddy.example
Normal file
25
deployment/caddy.example
Normal file
@@ -0,0 +1,25 @@
|
||||
tools.example.test {
|
||||
header {
|
||||
X-Content-Type-Options "nosniff"
|
||||
Referrer-Policy "no-referrer"
|
||||
X-Frame-Options "DENY"
|
||||
Cross-Origin-Opener-Policy "same-origin"
|
||||
Cross-Origin-Embedder-Policy "require-corp"
|
||||
Cross-Origin-Resource-Policy "same-origin"
|
||||
Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=(), usb=()"
|
||||
Content-Security-Policy "default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; worker-src 'self' blob:; connect-src 'self'; img-src 'self' blob: data:; media-src 'self' blob:; font-src 'self'; style-src 'self'; object-src 'none'; frame-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'"
|
||||
Cache-Control "no-cache"
|
||||
}
|
||||
|
||||
@wasm path_regexp wasm \.wasm$
|
||||
header @wasm Content-Type "application/wasm"
|
||||
|
||||
@immutable path_regexp immutable ^/av/(?:vendor/ffmpeg/0\.12\.10/(?:st|mt)/ffmpeg-core(?:\.worker)?\.(?:js|wasm)|assets/.*-[A-Za-z0-9_-]{8,}\.[^/]+)$
|
||||
header @immutable Cache-Control "public, max-age=31536000, immutable"
|
||||
|
||||
redir /av /av/ 308
|
||||
handle_path /av/* {
|
||||
root * /srv/av-tools
|
||||
file_server
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user