From c222c16677f7743e2e7f62464b19de06f5cd953b Mon Sep 17 00:00:00 2001 From: ospab Date: Wed, 14 Jan 2026 14:53:49 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3?= =?UTF-8?q?=D1=83=D1=80=D0=B0=D1=86=D0=B8=D1=8F=20nginx=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20named=20locations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Убрана URI-часть из proxy_pass в named locations - Заменен https на http для upstream (локальный 127.0.0.1) - Исправлена ошибка nginx -t --- ospabhost/nginx.conf | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ospabhost/nginx.conf b/ospabhost/nginx.conf index 65a44d8..cf9f506 100644 --- a/ospabhost/nginx.conf +++ b/ospabhost/nginx.conf @@ -76,7 +76,7 @@ server { location /api/ { limit_req zone=api_limit burst=20 nodelay; - proxy_pass https://backend_api; + proxy_pass http://backend_api; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; @@ -97,7 +97,7 @@ server { location /api/auth/login { limit_req zone=login_limit burst=5 nodelay; - proxy_pass https://backend_api; + proxy_pass http://backend_api; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -111,7 +111,7 @@ server { location /api/auth/register { limit_req zone=login_limit burst=3 nodelay; - proxy_pass https://backend_api; + proxy_pass http://backend_api; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -124,7 +124,7 @@ server { # WebSocket support for real-time features location /ws { - proxy_pass https://backend_api; + proxy_pass http://backend_api; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; @@ -180,7 +180,7 @@ server { # Fallback to backend for robots.txt location @backend_robots { - proxy_pass https://backend_api/robots.txt; + proxy_pass http://backend_api; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -190,7 +190,7 @@ server { # Fallback to backend for sitemap location @backend_sitemap { - proxy_pass https://backend_api/sitemap.xml; + proxy_pass http://backend_api; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -277,7 +277,7 @@ server { # Proxy to backend location / { - proxy_pass https://backend_api; + proxy_pass http://backend_api; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade';