new version proxy to kopama.com.pl
This commit is contained in:
parent
a7076407bb
commit
59c02e6c4d
|
|
@ -1,10 +1,30 @@
|
|||
# Redirect z HTTPS na nową domenę kursy.kopama.pl
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name kopama.com.pl www.kopama.com.pl;
|
||||
|
||||
|
||||
server_tokens off
|
||||
|
||||
ssl_certificate /letsencrypt/live/kopama.com.pl/fullchain.pem;
|
||||
ssl_certificate_key /letsencrypt/live/kopama.com.pl/privkey.pem;
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
|
||||
# 🔥 Stałe przekierowanie 301 na nową domenę
|
||||
return 301 https://kursy.kopama.pl$request_uri;
|
||||
}
|
||||
# Permanent redirect z zachowaniem ścieżki
|
||||
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 kursy.kopama.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;
|
||||
}
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@ server {
|
|||
proxy_pass http://arti24-container:3131;
|
||||
|
||||
# 🔹 Doocelowa domena
|
||||
proxy_set_header X-Redirect-Domain kopama.com.pl;
|
||||
proxy_set_header X-Redirect-Domain kursy.kopama.pl;
|
||||
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
|
|||
|
|
@ -11,19 +11,20 @@ server {
|
|||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
|
||||
# Permanent redirect z zachowaniem ścieżki
|
||||
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 kursy.kopama.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;
|
||||
# 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 kursy.kopama.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;
|
||||
}
|
||||
}
|
||||
|
|
@ -11,27 +11,18 @@ server {
|
|||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
|
||||
|
||||
|
||||
|
||||
location / {
|
||||
# Ograniczenie liczby żądań
|
||||
limit_req zone=ip_limit burst=20 nodelay;
|
||||
proxy_pass http://arti24-container:3335;
|
||||
|
||||
# 🔹 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;
|
||||
}
|
||||
location / {
|
||||
# Ograniczenie liczby żądań
|
||||
limit_req zone=ip_limit burst=20 nodelay;
|
||||
|
||||
|
||||
|
||||
|
||||
proxy_pass http://arti24-container:3335;
|
||||
|
||||
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