diff --git a/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile b/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile index 2467600..169a856 100755 --- a/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile +++ b/deploy-this/lets-encrypt/lets-encrypt-create-cert.jenkinsfile @@ -8,7 +8,8 @@ def domainsToCert = [ [ false, "arti24.eu", "api", "angular", "plecianki"], [ false, "katb.pl"], [ false, "kursy.kopama.pl"], - [ false, "statistics.kopama.pl"] + [ false, "statistics.kopama.pl"], + [ false, "kursb.pl"] ] def createCert(domains) { diff --git a/nginx-config/https/katb.pl-redirect.conf b/nginx-config/https/katb.pl-redirect.conf new file mode 100644 index 0000000..87f28ff --- /dev/null +++ b/nginx-config/https/katb.pl-redirect.conf @@ -0,0 +1,32 @@ +server { + + listen 443 ssl; + server_name katb.pl www.katb.pl; + + server_tokens off; + + ssl_certificate /letsencrypt/live/katb.pl/fullchain.pem; + ssl_certificate_key /letsencrypt/live/katb.pl/privkey.pem; + + 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 kursb.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 diff --git a/nginx-config/https/katb.pl.conf b/nginx-config/https/kursb.pl.conf similarity index 80% rename from nginx-config/https/katb.pl.conf rename to nginx-config/https/kursb.pl.conf index e9e3f8c..a54b0f4 100644 --- a/nginx-config/https/katb.pl.conf +++ b/nginx-config/https/kursb.pl.conf @@ -1,12 +1,12 @@ server { listen 443 ssl; - server_name katb.pl www.katb.pl; + server_name kursb.pl www.kursb.pl; server_tokens off; - ssl_certificate /letsencrypt/live/katb.pl/fullchain.pem; - ssl_certificate_key /letsencrypt/live/katb.pl/privkey.pem; + ssl_certificate /letsencrypt/live/kursb.pl/fullchain.pem; + ssl_certificate_key /letsencrypt/live/kursb.pl/privkey.pem; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5;