🔨」 fix: fixed alert

This commit is contained in:
2025-10-24 17:35:53 +02:00
parent a073b61d65
commit e9371b70f4
3 changed files with 3 additions and 18 deletions

View File

@ -23,3 +23,6 @@ scrape_configs:
- job_name: 'node-exporter' - job_name: 'node-exporter'
static_configs: static_configs:
- targets: ['node-exporter:9100'] - targets: ['node-exporter:9100']
rule_files:
- /etc/prometheus/rules.yml

View File

@ -38,9 +38,6 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
location /api/v1/user/metrics {
return 403;
}
location /api/v1/auth/ { location /api/v1/auth/ {
modsecurity off; modsecurity off;

View File

@ -32,10 +32,6 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
location /api/v1/user/metrics {
return 403;
}
location /api/v1/auth/ { location /api/v1/auth/ {
modsecurity off; modsecurity off;
proxy_pass http://transcendence-api-auth:3000/; proxy_pass http://transcendence-api-auth:3000/;
@ -44,17 +40,6 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
location /api/v1/auth/metrics {
return 403;
}
location /api/v1/auth/login/google/callback {
modsecurity off;
proxy_pass http://transcendence-api-auth:3000/login/google/callback;
}
location /api/v1/auth/register/google/callback {
modsecurity off;
proxy_pass http://transcendence-api-auth:3000/register/google/callback;
}
} }
server { server {