diff --git a/nginx-config/https/plecianki.arti24.eu.proxy.conf b/nginx-config/https/plecianki.arti24.eu.proxy.conf deleted file mode 100644 index 699b81e..0000000 --- a/nginx-config/https/plecianki.arti24.eu.proxy.conf +++ /dev/null @@ -1,29 +0,0 @@ -# Redirect z HTTPS na nową domenę kopama.com.pl -server { - listen 443 ssl; - server_name plecianki.arti24.eu; - - server_tokens off; - - ssl_certificate /letsencrypt/live/arti24.eu/fullchain.pem; - ssl_certificate_key /letsencrypt/live/arti24.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:3337; - - 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/plecianki.arti24.eu.redirect.conf b/nginx-config/https/plecianki.arti24.eu.redirect.conf new file mode 100644 index 0000000..cc68b01 --- /dev/null +++ b/nginx-config/https/plecianki.arti24.eu.redirect.conf @@ -0,0 +1,12 @@ +# Redirect z HTTPS na nową domenę kopama.com.pl +server { + listen 443 ssl; + server_name plecianki.arti24.eu; + + server_tokens off; + + ssl_certificate /letsencrypt/live/arti24.eu/fullchain.pem; + ssl_certificate_key /letsencrypt/live/arti24.eu/privkey.pem; + + # 🔥 Stałe przekierowanie 301 na nową domenę + return 301 https://plecianki.pl$request_uri;