new proxy
This commit is contained in:
parent
8e7c3e55c2
commit
87b12608e2
|
|
@ -11,6 +11,19 @@ server {
|
||||||
ssl_protocols TLSv1.2 TLSv1.3;
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||||
|
|
||||||
# Permanent redirect z zachowaniem ścieżki
|
location / {
|
||||||
return 301 https://kopama.com.pl$request_uri;
|
# 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue