From 98dd54957afc1e084f424391c77b39646662fba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20Ku=C5=9B?= Date: Tue, 2 Sep 2025 19:55:40 +0200 Subject: [PATCH] redirect kopama.themself.eu -> kopama.com.pl --- .../https/https-kopama-themself-eu.conf | 38 ++++++------------- 1 file changed, 12 insertions(+), 26 deletions(-) diff --git a/nginx-config/https/https-kopama-themself-eu.conf b/nginx-config/https/https-kopama-themself-eu.conf index 60ccaf5..13654d7 100644 --- a/nginx-config/https/https-kopama-themself-eu.conf +++ b/nginx-config/https/https-kopama-themself-eu.conf @@ -1,30 +1,16 @@ +# Redirect z HTTPS na nową domenę kopama.com.pl server { + listen 443 ssl; + server_name kopama.themself.eu; + + server_tokens off; - listen 443 ssl; - server_name kopama.themself.eu; - - server_tokens off; + ssl_certificate /letsencrypt/live/themself.eu/fullchain.pem; + ssl_certificate_key /letsencrypt/live/themself.eu/privkey.pem; + + ssl_protocols TLSv1.2 TLSv1.3; + ssl_ciphers HIGH:!aNULL:!MD5; - ssl_certificate /letsencrypt/live/themself.eu/fullchain.pem; - ssl_certificate_key /letsencrypt/live/themself.eu/privkey.pem; - - 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; - - 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; - } - + # Permanent redirect z zachowaniem ścieżki + return 301 https://kopama.com.pl$request_uri; } \ No newline at end of file