# DomainPulse LiteSpeed / Apache Configuration
Options -Indexes

# Set proper MIME types
<IfModule mod_mime.c>
  AddType text/css .css
  AddType application/javascript .js
  AddType text/html .html
</IfModule>

# Enable CORS for RDAP and APIs
<IfModule mod_headers.c>
  Header set Access-Control-Allow-Origin "*"
  Header set Access-Control-Allow-Methods "GET, POST, DELETE, OPTIONS"
  Header set Access-Control-Allow-Headers "Content-Type, Authorization"
</IfModule>

# If using Python reverse proxy (when running uvicorn in background):
# <IfModule mod_rewrite.c>
#   RewriteEngine On
#   RewriteRule ^api/(.*) http://127.0.0.1:8000/api/$1 [P,L]
# </IfModule>
