updated
هذا الالتزام موجود في:
21
status-page/nginx.conf
Normal file
21
status-page/nginx.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
# Serve the static status page
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# Proxy Uptime Kuma API — avoids CORS issues entirely (same-origin from browser's perspective)
|
||||
location /kuma-api/ {
|
||||
proxy_pass https://uptime-kuma-web-3aa83c30.hosted.cumin.dev/;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_set_header Host uptime-kuma-web-3aa83c30.hosted.cumin.dev;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
}
|
||||
}
|
||||
المرجع في مشكلة جديدة
حظر مستخدم