From e9d19ae8a0029122d91fe6f64572f7b3fa039372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20Ku=C5=9B?= Date: Fri, 17 Jul 2026 14:39:22 +0200 Subject: [PATCH] /api/health i /api/audit --- nginx-config/https/arti24.eu.conf | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/nginx-config/https/arti24.eu.conf b/nginx-config/https/arti24.eu.conf index d58b1a8..9ffb292 100755 --- a/nginx-config/https/arti24.eu.conf +++ b/nginx-config/https/arti24.eu.conf @@ -21,16 +21,25 @@ server { } # --- GŁÓWNY PROXY / Node.js --- - location /api/ { - proxy_pass http://arti24-container:3456/api/; - - 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; - } - - location / { + location = /api/health { + proxy_pass http://arti24-container:3456/api/health; + + 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; + } + + location = /api/audit { + proxy_pass http://arti24-container:3456/api/audit; + + 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; + } + + location / { # Ograniczenie liczby żądań limit_req zone=ip_limit burst=20 nodelay;