File size: 676 Bytes
59027a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
worker_processes auto;
pid /tmp/nginx.pid;
events { worker_connections 1024; }
http {
  include /etc/nginx/mime.types;
  default_type application/octet-stream;
  access_log /tmp/access.log; error_log /tmp/error.log;
  sendfile on; keepalive_timeout 65;
  gzip on; gzip_types text/plain text/css application/javascript application/json image/svg+xml;
  server {
    listen 7860; server_name localhost; root /app/dist; index index.html;
    location = /health { return 200 "ok"; add_header Content-Type text/plain; }
    location /_astro/ { expires 30d; add_header Cache-Control "public, max-age=2592000, immutable"; }
    location / { try_files $uri $uri/ /index.html; }
  }
}