/api/health i /api/audit
This commit is contained in:
parent
e622ec4bd0
commit
e9d19ae8a0
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue