diff --git a/nginx-config/https/plecianki.pl.conf b/nginx-config/https-disabled/plecianki.pl.conf similarity index 100% rename from nginx-config/https/plecianki.pl.conf rename to nginx-config/https-disabled/plecianki.pl.conf diff --git a/nginx-config/https/plecianki.proxy.conf b/nginx-config/https/plecianki.arti24.eu.proxy.conf similarity index 100% rename from nginx-config/https/plecianki.proxy.conf rename to nginx-config/https/plecianki.arti24.eu.proxy.conf diff --git a/nginx-config/https/plecianki.pl-proxy.conf b/nginx-config/https/plecianki.pl-proxy.conf new file mode 100644 index 0000000..0940788 --- /dev/null +++ b/nginx-config/https/plecianki.pl-proxy.conf @@ -0,0 +1,25 @@ +# Redirect z HTTPS na nową domenę kopama.com.pl +server { + listen 443 ssl; + server_name plecianki.pl; + + server_tokens off; + + ssl_certificate /letsencrypt/live/plecianki.pl/fullchain.pem; + ssl_certificate_key /letsencrypt/live/plecianki.pl/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:3332; + 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