Release Toolbox v0.19.0
This commit is contained in:
+13
-4
@@ -15,9 +15,11 @@ map $uri $toolbox_access_control_allow_origin {
|
||||
}
|
||||
|
||||
map "$host:$uri" $toolbox_permissions_policy {
|
||||
default "camera=(), microphone=(), geolocation=(), payment=(), usb=()";
|
||||
"~^auth\.toolbox\.add-ideas\.de:" "camera=(self), microphone=(), geolocation=(), payment=(), usb=()";
|
||||
"~^[^:]+:/apps/barcode(?:/|$)" "camera=(self), microphone=(), geolocation=(), payment=(), usb=()";
|
||||
default "camera=(), microphone=(), display-capture=(), geolocation=(), payment=(), usb=()";
|
||||
"~^auth\.toolbox\.add-ideas\.de:" "camera=(self), microphone=(), display-capture=(), geolocation=(), payment=(), usb=()";
|
||||
"~^[^:]+:/apps/barcode(?:/|$)" "camera=(self), microphone=(), display-capture=(), geolocation=(), payment=(), usb=()";
|
||||
"~^[^:]+:/apps/scan(?:/|$)" "camera=(self), microphone=(), display-capture=(), geolocation=(), payment=(), usb=()";
|
||||
"~^[^:]+:/apps/device(?:/|$)" "camera=(self), microphone=(self), display-capture=(self), geolocation=(), payment=(), usb=()";
|
||||
}
|
||||
|
||||
server {
|
||||
@@ -38,7 +40,7 @@ server {
|
||||
add_header Cross-Origin-Resource-Policy $toolbox_resource_policy always;
|
||||
add_header Access-Control-Allow-Origin $toolbox_access_control_allow_origin always;
|
||||
add_header Permissions-Policy $toolbox_permissions_policy always;
|
||||
add_header Content-Security-Policy "default-src 'self'; base-uri 'self'; object-src 'none'; frame-ancestors 'none'; form-action 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; media-src 'self' blob:; font-src 'self' data:; connect-src 'self'; worker-src 'self' blob:; manifest-src 'self'" always;
|
||||
add_header Content-Security-Policy "default-src 'self'; base-uri 'self'; object-src 'none'; frame-ancestors 'none'; form-action 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; media-src 'self' blob:; font-src 'self' data: blob:; connect-src 'self'; worker-src 'self' blob:; manifest-src 'self'" always;
|
||||
add_header Cache-Control $toolbox_cache_control always;
|
||||
|
||||
gzip on;
|
||||
@@ -64,6 +66,13 @@ server {
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location ~* ^/apps/scan/ocr/lang/[a-z0-9_-]+\.traineddata\.gz$ {
|
||||
types {
|
||||
application/gzip gz;
|
||||
}
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location ~* \.(?:css|js|mjs|woff2?|png|jpe?g|gif|webp|svg|ico|webmanifest)$ {
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user