Emergency Stop fix 2
This commit is contained in:
@@ -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/;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user