new proxy

This commit is contained in:
Artur Kuś 2025-10-03 11:00:04 +02:00
parent 8e7c3e55c2
commit 87b12608e2
1 changed files with 15 additions and 2 deletions

View File

@ -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;
}
}