This is an automated email from the ASF dual-hosted git repository.
caogaofei pushed a commit to branch docs/dev
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/docs/dev by this push:
new 5f6f88f8 Update .htaccess for enable algolia
5f6f88f8 is described below
commit 5f6f88f8529567ac8f3b62dba890972c83e32315
Author: CritasWang <[email protected]>
AuthorDate: Wed Mar 12 10:35:02 2025 +0800
Update .htaccess for enable algolia
---
src/.vuepress/public/.htaccess | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/.vuepress/public/.htaccess b/src/.vuepress/public/.htaccess
new file mode 100644
index 00000000..c8284f1c
--- /dev/null
+++ b/src/.vuepress/public/.htaccess
@@ -0,0 +1,9 @@
+RewriteEngine On
+
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule . /404.html [L]
+
+ErrorDocument 404 /404.html
+
+Header set Content-Security-Policy "default-src data: blob: 'self'
*.apache.org *.githubusercontent.com *.github.com *.algolia.net
*.algolianet.com *.apachecon.com *.communityovercode.org 'unsafe-inline'
'unsafe-eval'; frame-src 'self' data: blob:; frame-ancestors 'self'; worker-src
'self' data: blob:; img-src 'self' blob: data: https: *.apache.org
www.apachecon.com; style-src 'self' 'unsafe-inline' data:;"