الملفات
ghaymah-exam-Mohamed_Mousta…/q5-mithal-monitor/nginx.conf
Mohamed Moustafa c653222887 first commit
2026-07-27 23:27:12 +03:00

24 أسطر
542 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
# Allow metrics.json to be fetched by the dashboard
location = /metrics.json {
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Access-Control-Allow-Origin "*";
}
# Health check endpoint
location /health {
access_log off;
return 200 'OK';
add_header Content-Type text/plain;
}
}