Ghaymah intern
هذا الالتزام موجود في:
24
q1-deploy-monitor/nginx.conf
Normal file
24
q1-deploy-monitor/nginx.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
المرجع في مشكلة جديدة
حظر مستخدم