From 87b12608e21dd6468c5ac6fdefeade45108a6bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20Ku=C5=9B?= Date: Fri, 3 Oct 2025 11:00:04 +0200 Subject: [PATCH] new proxy --- nginx-config/https/kopana.com.pl-redirect.conf | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/nginx-config/https/kopana.com.pl-redirect.conf b/nginx-config/https/kopana.com.pl-redirect.conf index bcd5eef..882ad2e 100644 --- a/nginx-config/https/kopana.com.pl-redirect.conf +++ b/nginx-config/https/kopana.com.pl-redirect.conf @@ -11,6 +11,19 @@ server { ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; - # Permanent redirect z zachowaniem ścieżki - return 301 https://kopama.com.pl$request_uri; + location / { + # Ograniczenie liczby żądań + limit_req zone=ip_limit burst=20 nodelay; + proxy_pass http://arti24-container:3131; + + # 🔹 Doocelowa domena + proxy_set_header X-Redirect-Domain kopama.com.pl; + + 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_set_header Host $host; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Port $server_port; + } } \ No newline at end of file