Files
coffee/nginx.conf
Julien Calixte 645f93069c Initial commit: Coffee Map PWA
Vue 3 + Vite PWA backed by ATProto PDS (coffee.apoena.dev).
Stores coffee spots as dev.apoena.coffeespot records with name,
geolocation, note, and status. Map via MapLibre + OpenFreeMap,
auth via ATProto OAuth, deploy via Docker + Nginx on Coolify.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 23:01:17 +01:00

32 lines
773 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Serve client-metadata.json with correct Content-Type
location = /client-metadata.json {
add_header Content-Type application/json;
add_header Access-Control-Allow-Origin *;
}
# SPA fallback
location / {
try_files $uri $uri/ /index.html;
}
# Cache static assets
location ~* \.(js|css|png|jpg|svg|ico|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# No cache for service worker
location = /sw.js {
add_header Cache-Control "no-store";
}
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml;
}