2026-05-12 07:02:55 -04:00
|
|
|
server {
|
2026-10-01 20:43:16 -04:00
|
|
|
listen 80;
|
2026-05-12 07:02:55 -04:00
|
|
|
server_name _;
|
|
|
|
|
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
index index.html;
|
|
|
|
|
|
|
|
|
|
charset utf-8;
|
|
|
|
|
|
|
|
|
|
gzip on;
|
2026-10-01 20:43:16 -04:00
|
|
|
gzip_types text/plain text/css text/javascript application/javascript application/json application/xml image/svg+xml;
|
2026-05-12 07:02:55 -04:00
|
|
|
gzip_min_length 1024;
|
2026-10-01 20:43:16 -04:00
|
|
|
gzip_comp_level 6;
|
|
|
|
|
gzip_vary on;
|
|
|
|
|
|
|
|
|
|
# Security headers
|
|
|
|
|
add_header X-Frame-Options SAMEORIGIN always;
|
|
|
|
|
add_header X-Content-Type-Options nosniff always;
|
|
|
|
|
add_header Referrer-Policy strict-origin-when-cross-origin always;
|
|
|
|
|
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
|
|
|
|
|
|
|
|
|
|
# Vendored libs — versioned, cache hard
|
|
|
|
|
location /vendor/ {
|
|
|
|
|
expires 365d;
|
|
|
|
|
add_header Cache-Control "public, immutable";
|
|
|
|
|
}
|
2026-05-12 07:02:55 -04:00
|
|
|
|
2026-10-01 20:43:16 -04:00
|
|
|
# Images/fonts — long cache
|
|
|
|
|
location ~* \.(png|jpg|jpeg|gif|webp|avif|svg|ico|woff2?|ttf)$ {
|
2026-05-12 07:02:55 -04:00
|
|
|
expires 30d;
|
2026-10-01 20:43:16 -04:00
|
|
|
add_header Cache-Control "public, no-transform";
|
2026-05-12 07:02:55 -04:00
|
|
|
}
|
|
|
|
|
|
2026-10-01 20:43:16 -04:00
|
|
|
# App JS/CSS — short cache so edits show fast
|
|
|
|
|
location ~* \.(css|js)$ {
|
|
|
|
|
expires 10m;
|
2026-05-12 07:02:55 -04:00
|
|
|
add_header Cache-Control "public, must-revalidate";
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-01 20:43:16 -04:00
|
|
|
# Never serve build sources, docs, or deploy config
|
|
|
|
|
location ~* (\.(jsx|mjs|py|sh|md|ya?ml|conf|tgz)|/Dockerfile)$ { return 404; }
|
|
|
|
|
location ~ /\. { return 404; }
|
|
|
|
|
location /scripts/ { return 404; }
|
2026-05-12 07:02:55 -04:00
|
|
|
|
2026-10-01 20:43:16 -04:00
|
|
|
location = /robots.txt { default_type text/plain; }
|
|
|
|
|
location = /llms.txt { default_type text/plain; }
|
SEO: local AV/DC targeting, static service + case-study pages
- services-data.js: 4 service landing pages (commercial AV install DC,
broadcast integration, LED/XR, conference room AV) with FAQ + areas
- build-pages.mjs: node-stdlib generator -> /services/<slug>/,
/projects/<slug>/, index pages, sitemap.xml; Service/FAQPage/Article/
BreadcrumbList JSON-LD on every page
- index.html: title/description/OG retargeted to 'Commercial AV &
Broadcast Systems Integrator - Washington, DC'; ProfessionalService
schema gains geo, areaServed (DMV cities), hasOfferCatalog; noscript
fallback links the new pages
- components.jsx: hero copy + footer links point at real service pages
- nginx.conf/Dockerfile: ship generated pages, robots/sitemap types
- llms.txt: service pages + service area
2026-09-18 08:00:19 -04:00
|
|
|
location = /sitemap.xml { default_type application/xml; }
|
|
|
|
|
|
2026-10-01 20:43:16 -04:00
|
|
|
# HTML — no stale cache
|
|
|
|
|
location = /index.html {
|
|
|
|
|
add_header Cache-Control "no-cache, must-revalidate";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Real 404s for unknown paths (SPA routes via location.hash, so / covers them).
|
|
|
|
|
# ponytail: plain nginx 404 page; add a branded 404.html if traffic warrants it
|
|
|
|
|
location / {
|
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
|
}
|
2026-05-12 07:02:55 -04:00
|
|
|
}
|