Glückwunsch!
Erstmal ein Backup machen
Erstmal ein Backup machen
)




)
Ich hab vorsichtshalber mal die Systemzeit auf dem NGINX gecheckt - die ist aber ok.. 
# Zugriff auf die SmartVISU mit Basic Auth
location /smartVISU {
auth_basic "Restricted Area: smartVISU";
auth_basic_user_file /etc/nginx/.smartvisu;
# Zugreifendes Land erlaubt?
if ($allowed_country = no) {
return 403;
}
proxy_pass http://<SmartVISU Server LAN IP>/smartVISU;
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;
}
# Alexa Plugin Weiterleitung
location /alexa {
auth_basic "Restricted Area: Alexa";
auth_basic_user_file /etc/nginx/.alexa;
# Zugreifendes Land erlaubt?
if ($allowed_country = no) {
return 403;
}
proxy_pass http://<SmartHomeNG LAN IP>:<Alexa Plugin Port>/;
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;
}
# Weiterleitung zu SmartHomeNG (Websocket Schnittstelle) mit Basic Auth
location / {
auth_basic "Restricted Area: smartVISU";
auth_basic_user_file /etc/nginx/.smartvisu;
# Zugreifendes Land erlaubt?
if ($allowed_country = no) {
return 403;
}
# Nur Websocket Verbindungen gegen "/" durchlassen!
if ($http_upgrade = websocket) {
proxy_pass http://<SmartHomeNG LAN IP>:[MARKIEREN]<Websocket Port>[/MARKIEREN];
}
if ($http_upgrade != websocket) {
return 403;
}
if (!io.port) {
// use port of current page if not defined and needed
if (location.port != '') {
io.port = location.port;
} else {
if (location.protocol == 'http:') io.port = '80';
if (location.protocol == 'https:') io.port = '443';
}
}
if (!io.port) {
// use port of current page if not defined and needed
if (location.port != '') {
io.port = location.port;
} else {
if (location.protocol == 'http:') io.port = '[MARKIEREN]2424[/MARKIEREN]';
if (location.protocol == 'https:') io.port = '443';
}
if (location.port != '') {
io.port = location.port;
} else {
if (location.protocol == 'https:') io.port = '443';
}
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.


Kommentar