From bcca37e20fc192b3ec09da38616ddd7935794884 Mon Sep 17 00:00:00 2001 From: Artur Date: Thu, 16 Jan 2025 15:43:30 +0100 Subject: [PATCH] bodypainter.artiks.tk --- nginx-config/https/https-arti24-eu.conf | 30 +++++++++---------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/nginx-config/https/https-arti24-eu.conf b/nginx-config/https/https-arti24-eu.conf index d5e72d7..7bbac46 100644 --- a/nginx-config/https/https-arti24-eu.conf +++ b/nginx-config/https/https-arti24-eu.conf @@ -8,30 +8,22 @@ server { ssl_certificate /letsencrypt/live/arti24.eu/fullchain.pem; ssl_certificate_key /letsencrypt/live/arti24.eu/privkey.pem; - ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; - location /angular{ - rewrite ^/angular(.*)$ https://angular.arti24.eu/$1 redirect; - } - location / { - + # Ograniczenie liczby żądań limit_req zone=ip_limit burst=20 nodelay; - - proxy_pass http://arti-angular-app:4200; - 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; + proxy_pass http://zaklik_by_node_js:3000; + + 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; } - - - - -} +