ci: add Drone pipeline, production Docker setup, frontend Dockerfile
Some checks failed
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Ryan Lancaster
2026-03-18 17:00:31 -04:00
parent 4a7b3061ed
commit 82d7dfcc14
5 changed files with 523 additions and 0 deletions

28
frontend/nginx.conf Normal file
View File

@@ -0,0 +1,28 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Health probe (checked by Docker + Caddy)
location /health {
return 200 'ok';
add_header Content-Type text/plain;
}
# SPA fallback — any path that isn't a real file serves index.html
location / {
try_files $uri $uri/ /index.html;
}
# Static asset caching
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
gzip on;
gzip_types text/plain text/css application/javascript application/json image/svg+xml;
gzip_min_length 1024;
}