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