# Example reverse proxy; replace domain/cert paths and terminate TLS before production.
server {
  listen 80;
  server_name omega.example.com;
  client_max_body_size 20m;
  add_header X-Content-Type-Options nosniff always;
  add_header Referrer-Policy strict-origin-when-cross-origin always;
  add_header X-Frame-Options DENY always;
  location /api/ { proxy_pass http://127.0.0.1:8000/api/; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; limit_req zone=api burst=30 nodelay; }
  location /health/ { proxy_pass http://127.0.0.1:8000/health/; }
  location / { proxy_pass http://127.0.0.1:5173/; }
}
# Add `limit_req_zone $binary_remote_addr zone=api:10m rate=10r/s;` in nginx http {} context.
