fix: WASM CDN defaults bypass Docker empty env vars, nginx redirect port issue
- Fix envOrDefault() to treat empty strings as unset, so Docker builds without WASM build args correctly fall through to hardcoded CDN defaults - Show CDN defaults as placeholder text in WASM settings page instead of filling input values, with "Pre-configured" status badge - Fix nginx redirecting locale URLs without trailing slash (e.g. /de) to internal port 8080 by adding absolute_redirect off - Handle encrypted PDF error in compress tool with descriptive message - Replace Docker Hub pulls badge with GHCR downloads badge
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
**BentoPDF** is a powerful, privacy-first, client-side PDF toolkit that is self hostable and allows you to manipulate, edit, merge, and process PDF files directly in your browser. No server-side processing is required, ensuring your files remain secure and private.
|
**BentoPDF** is a powerful, privacy-first, client-side PDF toolkit that is self hostable and allows you to manipulate, edit, merge, and process PDF files directly in your browser. No server-side processing is required, ensuring your files remain secure and private.
|
||||||
|
|
||||||
 [](https://ko-fi.com/alio01) 
|
[](https://github.com/alam00000/bentopdf/pkgs/container/bentopdf) [](https://ko-fi.com/alio01) 
|
||||||
[](https://github.com/sponsors/alam00000)
|
[](https://github.com/sponsors/alam00000)
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -25,6 +25,7 @@ http {
|
|||||||
server_name localhost;
|
server_name localhost;
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
absolute_redirect off;
|
||||||
|
|
||||||
|
|
||||||
location ~* \.html$ {
|
location ~* \.html$ {
|
||||||
|
|||||||
@@ -121,6 +121,15 @@ async function performCondenseCompression(
|
|||||||
return { ...result, usedFallback: true };
|
return { ...result, usedFallback: true };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
errorMessage.includes('closed or encrypted') ||
|
||||||
|
errorMessage.includes('encrypted')
|
||||||
|
) {
|
||||||
|
throw new Error(
|
||||||
|
'This PDF is encrypted or password-protected. Please remove the password first using the Unlock PDF tool, then try compressing again.'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
throw new Error(`PDF compression failed: ${errorMessage}`);
|
throw new Error(`PDF compression failed: ${errorMessage}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user