New search functionality

This commit is contained in:
2025-07-19 15:31:29 -06:00
parent 04eb5f7546
commit 46e39e8c36
12 changed files with 734 additions and 5 deletions

View File

@@ -0,0 +1,24 @@
server {
listen 80;
server_name _;
root /config/www;
index index.html;
# CORS configuration for search index
location /search/search_index.json {
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'Origin, Content-Type, Accept' always;
if ($request_method = 'OPTIONS') {
return 204;
}
}
# General CORS for all requests (optional)
location / {
add_header 'Access-Control-Allow-Origin' '*' always;
try_files $uri $uri/ =404;
}
}