Files
omar a9c2badf2c Show parallel run progress and manage held clones and qualifications
- Job page: stable active-attempt default, per-run status grid with
  elapsed/countdown, completed k/n progress, queue position with an
  approximate ETA, past phases marked; artifacts come from the job payload.
- Polling stops for settled jobs and pauses in hidden tabs; events polling
  no longer re-renders without new events.
- Evidence release also for cleanup=failed with allocation details; new
  admin held-clones panel.
- Admin: all-profiles qualification overview, live refresh while
  qualifications run, Publish only for passed revisions.
- Russian labels for API error codes, event kinds and Grub statuses.
- nginx: gzip, immutable assets, request-time API upstream resolution,
  security headers only on static locations.
2026-09-24 17:55:13 +03:00

43 lines
1.8 KiB
Nginx Configuration File

server {
listen 8080;
server_name _;
root /usr/share/nginx/html;
index index.html;
server_tokens off;
client_max_body_size 0;
gzip on;
gzip_proxied any;
gzip_types application/json application/javascript text/css;
resolver 127.0.0.11 valid=10s ipv6=off;
location /api/ {
set $api http://api:8080;
proxy_pass $api;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_request_buffering off;
proxy_buffering off;
proxy_read_timeout 300s;
}
location /assets/ {
try_files $uri =404;
add_header Cache-Control "public, max-age=31536000, immutable";
add_header X-Content-Type-Options nosniff always;
add_header Referrer-Policy same-origin always;
add_header X-Frame-Options DENY always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; media-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'" always;
}
location / {
try_files $uri $uri/ /index.html;
expires -1;
add_header X-Content-Type-Options nosniff always;
add_header Referrer-Policy same-origin always;
add_header X-Frame-Options DENY always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; media-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'" always;
}
}