Emergency Stop fix 2

This commit is contained in:
chk
2026-06-12 19:12:46 +02:00
parent 4f8ebfbefe
commit 657a2a0670
2 changed files with 19 additions and 2 deletions

View File

@@ -17,6 +17,23 @@ server {
try_files $uri $uri/ /index.html;
}
# Robot Driver: power-status + emergency-stop (interner Proxy, vermeidet CORS)
location = /api/power-status {
proxy_pass http://appServer_TunnelHead:9798/api/power-status;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location = /api/emergency-stop {
proxy_pass http://appServer_TunnelHead:9798/api/emergency-stop;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# API forwarding (auth)
location /api/ {
proxy_pass http://appserverauth:3000/api/;

View File

@@ -71,8 +71,8 @@ function performLocalLogout() {
// ===========================
// Armed-Status prüfen
// ===========================
const POWER_STATUS_URL = 'https://robotdriver.server.schooltech.ch/api/power-status';
const ESTOP_URL = 'https://robotdriver.server.schooltech.ch/api/emergency-stop';
const POWER_STATUS_URL = '/api/power-status';
const ESTOP_URL = '/api/emergency-stop';
async function updateArmedStatus() {
console.log('[armed-check] GET', POWER_STATUS_URL);