From ddc8dc1db5bd096551c5102b1e047b56e3ec56d4 Mon Sep 17 00:00:00 2001 From: host Date: Sat, 25 Jul 2026 03:37:06 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/nginx.conf | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 61c2db0..0df158f 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -10,10 +10,8 @@ server { add_header X-Content-Type-Options "nosniff" always; add_header Referrer-Policy "no-referrer" always; add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always; - # CSP разрешает только свои ресурсы + Google Fonts + ws к backend. - # self + 'unsafe-inline' для стилей нужен Vite-сборке. noVNC загружается - # как npm-пакет, поэтому внешние CDN больше не нужны. - add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data:; connect-src 'self' ws: wss:; frame-ancestors 'self';" always; + # CSP: только свои ресурсы + Google Fonts для шрифтов. + add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data:; connect-src 'self'; frame-ancestors 'self';" always; location / { try_files $uri /index.html; @@ -25,11 +23,5 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - proxy_http_version 1.1; - # Для websocket-прокси VNC-консоли. - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_read_timeout 86400s; - proxy_send_timeout 86400s; } -} +} \ No newline at end of file