bunker-admin a77306fac2 Initial v2 commit: complete rebuild with unified API + React admin
Phase 1-14 complete:
- Unified Express.js API (TypeScript, Prisma ORM, PostgreSQL 16)
- React Admin GUI (Vite + Ant Design + Zustand)
- JWT auth with refresh tokens
- Influence: Campaigns, Representatives, Responses, Email Queue
- Map: Locations, Cuts, Shifts, Canvassing System
- NAR data import infrastructure (2025 format)
- Listmonk newsletter integration
- Landing page builder (GrapesJS)
- MkDocs + Code Server integration
- Volunteer portal with GPS tracking
- Monitoring stack (Prometheus, Grafana, Alertmanager)
- Pangolin tunnel integration

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-11 10:05:04 -07:00

49 lines
1.4 KiB
Plaintext

server {
listen 80;
server_name _;
root /config/www;
index index.html;
# CRITICAL: Include MIME types
include /etc/nginx/mime.types;
# Handle trailing slashes for directories
location ~ ^([^.]*[^/])$ {
try_files $uri $uri/ $uri.html =404;
}
# 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;
}
}
# Main location block
location / {
add_header 'Access-Control-Allow-Origin' '*' always;
try_files $uri $uri/ $uri/index.html $uri.html /index.html =404;
}
# Handle 404 with MkDocs 404 page
error_page 404 /404.html;
location = /404.html {
internal;
}
# Static assets
location ~* \.(css|js|jpg|jpeg|png|gif|ico|svg|woff|woff2|ttf|eot)$ {
add_header 'Access-Control-Allow-Origin' '*' always;
expires 30d;
add_header Cache-Control "public, immutable";
}
# Enable gzip
gzip on;
gzip_types text/plain text/css text/javascript application/javascript application/json;
}