25 أسطر
556 B
Nginx Configuration File
25 أسطر
556 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Synthetic health check for the static site
|
|
location /health {
|
|
default_type text/plain;
|
|
add_header 'Access-Control-Allow-Origin' '*' always;
|
|
return 200 "ok";
|
|
}
|
|
|
|
# Basic request/connection metrics (used by the dashboard)
|
|
location /nginx_status {
|
|
stub_status;
|
|
allow all;
|
|
add_header 'Access-Control-Allow-Origin' '*' always;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
}
|